How to convert values of int and float into complex number in python?


Warning: Trying to access array offset on false in /home3/indiakep/public_html/wp-content/plugins/dw-question-answer/inc/Template.php on line 8
All QuestionsCategory: PythonHow to convert values of int and float into complex number in python?
chetan shidling asked 6 years ago

I need short information.

1 Answers
chetan shidling answered 6 years ago

Simply use
c = complex(a,b)
5+4j