how to test if a while loop is running python code example Example: infinite while python #infinite While on Python while True: print('Hello World!')