r/PythonLearning • • 13d 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

2 comments sorted by

1

u/Fluffy_white_fox 9d ago

3.0 + 4.0**2 so 3.0 + 16.0 And it's 19.0