Answers for "infinite loop in python using for 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
1

python infinite loop

while True:
  print('This is an example')
Posted by: Guest on June-16-2021

Python Answers by Framework

Browse Popular Code Answers by Language