Python For Loop List

Python For Loop List Code.

#Python for loop for list
breakfast_items = ["Eggs", "Bread", "Milk", "Coffee", "Tea"]
for item in breakfast_items:
  print(item)


------------------------------------------------
#Output
Eggs
Bread
Milk
Coffee
Tea

Comments

Popular posts from this blog

How to write to a file in Kotlin

Python Tkinter example