We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0405c7 commit 98cdf9eCopy full SHA for 98cdf9e
0010-For-Loops/for_loops.py
@@ -6,12 +6,27 @@
6
7
print("For loops example")
8
print()
9
-print("Iterating Over a List")
+
10
11
+print("Iterating Over a List - start")
12
13
14
FRUITS = ["banana", "apple", "orange"]
15
16
for fruit in FRUITS:
17
print(fruit)
18
19
+print()
20
+print("Iterating Over a List - finish")
21
print("======================================================")
22
23
24
+print("Using range() to Iterate Over Numbers - start")
25
26
27
+for i in range(10):
28
+ print(i) # Print 10 numbers starting from 0 (0-9)
29
30
31
+print("Using range() to Iterate Over Numbers - finish")
32
+print("======================================================")
0 commit comments