Real and Imaginary Values in Python

Simple Python Script the shows how to use the real and imaginary value feature.

Source code :

a=2+3j
b=2-3j

print(a.real)
print(b.imag)

print(a*a)
print(a*b)

Output :

2.0
-3.0
(-5+12j)
(13+0j)

Output :


                

Comments :