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 346d23e commit 091b13dCopy full SHA for 091b13d
6_Loops/11_WhileLoop.py
@@ -3,8 +3,11 @@
3
print(fruits)
4
print(len(fruits))
5
6
-while index < len(fruits):
+while index < len(fruits): # while loop goes on executing until the condition inside it is satisfied
7
fruit_new = fruits[index]
8
print(index)
9
print(fruit_new)
10
index = index + 1
11
+
12
+# while True: # this is an infinite loop
13
+# print("a")
0 commit comments