Examveda

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

A. To create complex numbers

B. To perform complex calculations

C. To convert numbers to strings

D. To round floating-point numbers

Answer: Option A

Solution (By Examveda Team)

The complex() function is used to create complex numbers in Python.

This Question Belongs to Python Program >> Data Types And Numeric Types

Join The Discussion

Related Questions on Data Types and Numeric Types