Mar-23-2017, 08:53 AM
The length of each list should be equal to or more than the no of values we provide (a,b,c...)
for a,b,c in [1,2,3],[4,5,6],[7,8,9]:
print (a,b,c)
the output is:
(1, 2, 3)
(4, 5, 6)
(7, 8, 9)
this is no need to use same data type ,any data type can be used as list member.
for a,b,c in [1,2,3],[4,5,6],[7,8,9]:
print (a,b,c)
the output is:
(1, 2, 3)
(4, 5, 6)
(7, 8, 9)
this is no need to use same data type ,any data type can be used as list member.