Q. What is the output of complex(1, 2)?

A
1 + 2
B
(1, 2)
C
1 + 2j
D
Error
Solution:

complex(1, 2) creates a complex number 1 + 2j.

Entri Contact Image

Get Expert Advice for Free: Register for Your Free Consultation Now!