Creating complex numbers is easily done as you can see here. The form
a = 2+3j gives us
a, and if we look at the type of
a, you can see it’s of the
<class 'complex'>. In this class, it’s possible to do mathematical operations, such as addition.
01:16 Complex numbers in Python are capable of doing any of the sort of arithmetic as you’d expect to be able to do with them in mathematical work. So if you’re doing anything that involves complex numbers, you’ll be able to use this data type to allow you to do it simply and easily.
Become a Member to join the conversation.