Python For LoopsIterate over a sequence.ExamplesIterate ListPrint each fruit.fruits = ["apple", "banana", "cherry"] for x in fruits: print(x) Try it YourselfLoop StringLoop through characters.for x in "banana": print(x) Try it YourselfRange FunctionLoop 6 times (0 to 5).for x in range(6): print(x) Try it YourselfTest Your KnowledgePython QuizNo quiz available for this topic yet.PreviousNext