Create a tuple with some items and display with a for loop : Tuple Loop : Tuple PYTHON examples


PYTHON examples » Tuple » Tuple Loop »

 

Create a tuple with some items and display with a for loop


Create a tuple with some items and display with a for loop
 


inventory = ("a",
             "b",
             "c",
             "d")
print "Your items:"
for item in inventory:
    print item

           
         
  



Leave a Comment / Note


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


PYTHON examples

 Navioo Tuple
» Tuple Loop