Skip to content

Commit

Permalink
Adding for_loops.py
Browse files Browse the repository at this point in the history
  • Loading branch information
oneananda committed Oct 28, 2024
1 parent 82f50ec commit d0405c7
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions 0010-For-Loops/for_loops.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
"""
This program demonstrates the use of the for loops in Python.
"""

# for_loops.py

print("For loops example")
print()
print("Iterating Over a List")
print()

FRUITS = ["banana", "apple", "orange"]

for fruit in FRUITS:
print(fruit)

print("======================================================")

0 comments on commit d0405c7

Please sign in to comment.