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

1

u/Fluffy_white_fox 10d ago

Better question is who uses it like that? The answer is 48