+ 1

Unpacking

>>> a, b, c = 1, 2, 3 >>> a, b, c (1, 2, 3) >>> a, b, c = [1, 2, 3] >>> a, b, c (1, 2, 3) >>> a, b, c = (2 * i + 1 for i in range(3)) >>> a, b, c (1, 3, 5) >>> a, (b, c), d = [1, (2, 3), 4] >>> a 1 >>> b 2 >>> c 3 >>> d 4

31st Aug 2017, 7:37 PM
Ravi Patel
Ravi Patel - avatar
1 ответ
+ 2
what is your porpouse?
1st Sep 2017, 1:07 AM
Daniel
Daniel - avatar