+ 2

Can we assign more variables in a single statement?

In python can we assign multiple variables in a same line as below a,b,c=1,2,3 Is it possible?

5th May 2020, 10:00 AM
Bensen
2 Answers
+ 3
Sure :)) Like one, two, three = 1, 2, 3 print(two) Output is 2!
5th May 2020, 10:07 AM
Arb Rahim Badsa
Arb Rahim Badsa - avatar
0
Ohh great!! Thanks Arb Rahim Badsa
5th May 2020, 10:12 AM
Bensen