Mega Code Archive

 
Categories / Python / Tuple
 

Tuple assignment in for

T = [(1, 2), (3, 4), (5, 6)]  for (a, b) in T:                          # Tuple assignment at work     print a, b