Answers for "how to make a breakable loop in python"

1

how to make a breakable loop in python

while True: # This calls for an infinite loop
    print("Hello, World") 
    # Stuff that is under this loop will go on for forever.
    # Unstead of "True" you can insert anything -
    # that you want just like using an "if". 
    #It just like "if" but it goes on forever. For example:
    
x=3 # or anything like input....
while x+3==6:
  print("Hello, World")
Posted by: Guest on September-09-2021

Code answers related to "how to make a breakable loop in python"

Python Answers by Framework

Browse Popular Code Answers by Language