Vidyalelo
Python · Q45

MCQs for Python Data Types and Numeric Types Chapter

Programming · Python · question 45

Q45

What is the purpose of the complex() function in Python?

A.
To create complex numbers
Answer
B.
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.