Skip to content

Latest commit

 

History

History
15 lines (12 loc) · 221 Bytes

File metadata and controls

15 lines (12 loc) · 221 Bytes

#programming #programming/python #semester-1

Complex

Complex numbers are written with a j as the imaginary part:

x = 3+5j
y = 5j
z = -5j

You can cast to a complex using:

x = complex(x)