Articles → Python → Complex Function In Python

Complex Function In Python






Purpose





Example


cNum = 2+ 3j
print(type(cNum))
print(cNum)


# define complex number using complex function
print("define complex number using complex function")
cNum = complex(2,3)
print(type(cNum))
print(cNum)



Output


Picture showing the output of the complex function in python



Posted By  -  Karan Gupta
 
Posted On  -  Monday, May 13, 2019

Query/Feedback


Your Email Id
 
Subject
 
Query/FeedbackCharacters remaining 250