Q45
What is the purpose of the complex() function in Python?
A.
To create complex numbers
AnswerB.
To perform complex calculations
C.
To convert numbers to strings
D.
To round floating-point numbers
Answer: Option A
Solution
Answer: Option A
Solution:
The complex() function is used to create complex numbers in Python.