Informatics Practices
Which of the following does not represent a complex number?
- K = 2 + 3j
- K = complex(2,3)
- K = 2 + 3i
- K = 4 + 3j
Python Funda
1 Like
Answer
K = complex(2,3)
Reason — Complex numbers are made up of pairs of real and imaginary numbers. They take the form 'x+yj' or 'x+yi', where x is the real part and y is the imaginary part. Therefore, according to this, K = complex(2,3) is not a complex number.
Answered By
1 Like
Related Questions
Python takes …………… indented spaces after the function declaration statement by default.
- 5
- 6
- 4
- 3
Single line comments in Python begin with …………… symbol.
- #
- "
- '''
- %
What is the order of precedence of arithmetic operators given below in Python?
(1) Parenthesis
(2) Exponential
(3) Multiplication
(4) Division
(5) Addition
(6) Subtraction- 1,2,3,4,5,6
- 2,3,4,5,6,1
- 1,3,2,6,4,5
- 4,6,5,2,3,1
What will be the output of the following snippet?
x, y = 2, 6 x, y = y, x + 2 print(x, y)- 6 6
- 4 4
- 4 6
- 6 4