Answers for "python how to stop infinite loop"

3

how to make an infinite loop 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

Python Answers by Framework

Browse Popular Code Answers by Language