Answers for "Looping Through an Iterator"

0

Looping Through an Iterator

mytuple = ("apple", "banana", "cherry")

  
for x in mytuple:

      print(x)
Posted by: Guest on July-11-2021
0

Looping Through an Iterator

mystr = "banana"

  
for x in mystr:

      print(x)
Posted by: Guest on July-11-2021

Code answers related to "Looping Through an Iterator"

Browse Popular Code Answers by Language