exit wile loop python code example
Example 1: infinite while python
#infinite While on Python
while True:
print('Hello World!')
Example 2: how to end a loop in python
#the loop
for x in (1, 10, 1):
#type break to end loop before loop stops
break