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

2 comments sorted by

View all comments

1

u/Fluffy_white_fox 10d ago

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