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



Click to Enlarge


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

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250