Concept
complex(real, imag)
This function converts real numbers to a complex number.
c = complex(1, 2) print(c)
(1+2j)
0
0
Updated 2021-07-27
Tags
Python Programming Language
Data Science
complex(real, imag)
This function converts real numbers to a complex number.
c = complex(1, 2) print(c)
(1+2j)
0
0
Tags
Python Programming Language
Data Science