#Hello world!
print('hello world!')
#data types and mathematical operators
a=9
b=7
c=5.6
print(a+b,a-c,a/b,a//b,a%b,a*c,a**b)
#input method
mess = str(input('Enter your name : '))
num1 = int(input('Enter an int number : '))
num2 = float(input('Enter a float number : '))
print('hello',mess,', your numbers are: int:',num1,'float:',num2)
Calculating $\dfrac{ax^2-3x}{x^3}$ :
a = float(input('Enter a : '))
x = float(input('Enter x : '))
print((a*x**2-3*x)/(5*x**3))
Complex numbers $a+bj$ ($j$ is imaginary number):
c1=2+3j
c2=5+4j
print(c1,c2,c1+c2,c1*c2,c1/c2,abs(c1))
t=True
f=False
print(t,f)
print(type(t),type(f))
More examples:
#Complex numbers 2:
c1=2+3j
c2=5+4j
c3=5
c4=4j
a=c3+c4
print(c1,c2,c1+c2,c1*c2,c1/c2,abs(c1),a)
#print in new lines:
print(' hi \n',2.3,'\n','last line.')