while(1): done = True in python code example Example 1: python while true loop while True: print("Hi") Example 2: while true python while True: doSomething()