assignment"
Do we come across this kind of situation in real life?
"x, x = 20, 30
y, y = x + 10, x + 20
print (x, y)"
We can directly write
"x = 30
y = x + 20"
Since it will automatically evaluate to 30 50
I don't understand the usefulness
Yeah no one actually does that
You can assign the value of a tuple to two variables x, y = get_position()
Обсуждают сегодня