- for
for-in loop on list
examples/loops/for_list.py
fruits = ["Apple", "Banana", "Peach", "Orange", "Durian", "Papaya"] for fruit in fruits: print(fruit)
Apple Banana Peach Orange Durian Papaya
fruits = ["Apple", "Banana", "Peach", "Orange", "Durian", "Papaya"] for fruit in fruits: print(fruit)
Apple Banana Peach Orange Durian Papaya