put an if statement inside the condition of a while loop python code example
Example: infinite while python
#infinite While on Python
while True:
print('Hello World!')
#infinite While on Python
while True:
print('Hello World!')