how to quit a while loop in python code example Example: python exit while loop while (True): # ... break