Making tables using lists of lists and tuples of tuples. : Loop through : Tuple PYTHON TUTORIALS


PYTHON TUTORIALS » Tuple » Loop through »

 

Making tables using lists of lists and tuples of tuples.


table1 = [ [ 12]45] ]
table2 = ( ( 1)3)45) )

print "Values in table1 by row are"

for row in table1:
   for item in row:
      print item,
   print

print "nValues in table2 by row are"

for row in table2:
   for item in row:
      print item,
   print



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON TUTORIALS

 Navioo Tuple
» Loop through