Print all items in the list, one by one: thislist = ["apple", "banana", "cherry"] for x in thislist: print(x) Try it Yourself » Learn more about for loops in our Python For Loops Chapter.Loop Through the Index NumbersYou...
Exercise:Python Loop Tuples Try Again YesNo Next Exercise » What is a correct syntax for looping through the items of a tuple? for x in ('apple', 'banana', 'cherry'): print(x) for x in ('apple', 'banana', 'cherry')
Iterate through the items and print the values: thistuple = ("apple", "banana", "cherry") for x in thistuple: print(x) Try it Yourself » Learn more about for loops in our Python For Loops Chapter.Loop Through the Index NumbersYou...