+ 1

Is parallel assignment supported in Python just like it is in Ruby?

In Ruby we can assign variables in this way: x,y,z = 10,20,30 This basically means X = 10 Y = 20 Z = 30 Can we do the same in Python? Considering the fact that both these languages are very similar. Thanks in advance.

2nd Mar 2020, 7:59 AM
aniket patro
aniket patro - avatar
1 Answer