Iterate over a string and tuple : Tuple Loop : Tuple PYTHON examples


PYTHON examples » Tuple » Tuple Loop »

 

Iterate over a string and tuple


 

S = "lumberjack" 
T = ("and""I'm""okay"

for x in S: print x,                      # Iterate over a string
for x in T: print x,                      # Iterate over a tuple

   
  



Leave a Comment / Note


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


PYTHON examples

 Navioo Tuple
» Tuple Loop