Answers for "how to print a complex number in python"

1

complex numbers python

c = 1 + 2j
print(type(c))
print(c)

c1 = complex(2, 4)
print(type(c1))
print(c1)
Posted by: Guest on October-17-2020
1

how to take input complex number in python

complx = complex(input());
print(complx.real, complx.imag);
Posted by: Guest on June-07-2020

Code answers related to "how to print a complex number in python"

Python Answers by Framework

Browse Popular Code Answers by Language