Python provides complex build-in data type to make a complex number directly.Example:complex(a,b)it will return a+bi
Example:
complex(a,b)
it will return a+bi