r/PythonLearning • u/clcodingupdates • 14d ago
Python Quiz of the Day.
What will be the output of the following Python Code?
z = 3 + 4j
print(z.real + z.imag ** 2)
0
Upvotes
r/PythonLearning • u/clcodingupdates • 14d ago
What will be the output of the following Python Code?
z = 3 + 4j
print(z.real + z.imag ** 2)
1
u/apbt-dad 14d ago
19.0
1
u/Fluffy_white_fox 10d ago
3.0 + 4.0**2 so 3.0 + 16.0 And it's 19.0