Example Print all items, using a while loop to go through all the index numbers: thistuple = ("apple", "banana", "cherry") i = 0 while i < len(thistuple): print(thistuple[i]) i = i + 1 Try it Yourself » Lear
for loops cannot be empty, but if you for some reason have a for loop with no content, put in the pass statement to avoid getting an error.ExampleGet your own Python Server for x in [0, 1, 2]: pass Try it Yourself »