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