single while loop example python
Example 1: python while true loop
while True:
print("Hi")
Example 2: while loop python
# while loop (python)
i = 0
while i < 10:
i +=1 #or i = i + 1
print(i)
while True:
print("Hi")
# while loop (python)
i = 0
while i < 10:
i +=1 #or i = i + 1
print(i)