Report Bug

Qus

What will be the output of the following Python function?

complex(1+2j)

Qusनिम्नलिखित Python फ़ंक्शन का आउटपुट क्या होगा?


A. Error
B. 1
C. 2j
D. 1+2j


Solution
D. 1+2j



Explanation
The built-in function complex() returns the argument in a complex form. Hence the output of the function shown above will be 1+2j.
CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online Exam Quiz O Level NIELIT Study material and Quiz Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Best Website and Software Company in Allahabad Website development Company in Allahabad