Python Hello World
Python Hello World
print('Hello, world!')
num1 = 1.5
num2 = 6.3
3. Square root
num = 8
4. Area of a triangle
a=5
b=6
c=7
s = (a + b + c) / 2
5. Quadratic equation
import cmath
a=1
b=5
c=6
d = (b**2) - (4*a*c)
sol1 = (-b-cmath.sqrt(d))/(2*a)
sol2 = (-b+cmath.sqrt(d))/(2*a)
x=5
y = 10
temp = x
x=y
y = temp