Skip to content

Commit d0405c7

Browse files
committed
Adding for_loops.py
1 parent 82f50ec commit d0405c7

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

0010-For-Loops/for_loops.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
"""
2+
This program demonstrates the use of the for loops in Python.
3+
"""
4+
5+
# for_loops.py
6+
7+
print("For loops example")
8+
print()
9+
print("Iterating Over a List")
10+
print()
11+
12+
FRUITS = ["banana", "apple", "orange"]
13+
14+
for fruit in FRUITS:
15+
print(fruit)
16+
17+
print("======================================================")

0 commit comments

Comments
 (0)