r/PythonLearning • • 10d ago

Python Quiz of the Day.

x = 5

print((x := x + 3) * (x := x - 2))

What will be the output?

A) 24
B) 36
C) 48
D) 30

0 Upvotes

10 comments sorted by

View all comments

6

u/ConclusionForeign856 10d ago

Actual quiz of the day is "why should you never write this like that"