Skip to content

Commit

Permalink
Formatting for comments
Browse files Browse the repository at this point in the history
  • Loading branch information
oneananda committed Oct 28, 2024
1 parent cb5ea82 commit 21ed047
Showing 1 changed file with 18 additions and 5 deletions.
23 changes: 18 additions & 5 deletions 0010-For-Loops/for_loops.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
print("For loops example")
print()


print("Iterating Over a List - start")
COMMENT = "Iterating Over a List"
print(f"{COMMENT} - start")
print()

FRUITS = ["banana", "apple", "orange"]
Expand All @@ -17,16 +17,29 @@
print(fruit)

print()
print("Iterating Over a List - finish")
print(f"{COMMENT} - finish")
print("======================================================")

COMMENT = "Using range() to Iterate Over Numbers"
print(f"{COMMENT} - start")
print()

for i in range(10):
print(i) # Print 10 numbers starting from 0 (0-9)

print()
print(f"{COMMENT} - finish")
print("======================================================")

COMMENT = "Iterating Over a String"

print("Using range() to Iterate Over Numbers - start")
print(f"{COMMENT} - start")
print()

for i in range(10):
print(i) # Print 10 numbers starting from 0 (0-9)

print()
print("Using range() to Iterate Over Numbers - finish")
print(f"{COMMENT} - finish")
print("======================================================")

0 comments on commit 21ed047

Please sign in to comment.