xxxxxxxxxx
while True:
//Code which has to be repeted infinite times.
xxxxxxxxxx
while True:
print("Hello, World")
#or
x=3
while x+3==6:
print("Hello, World")
# you just have to make you condition is something that alwas true,
#for example: 1+1 > 0 or 0 < 5
xxxxxxxxxx
# Infinity Loop In Python is basically a loop which repeats until the program
# is running
# So, to make it, you need a while True statement
while True:
print("I will be printed until the program is finished!")
# Although, there is an alternative way to do it too:
running = True
while running:
print("I will also run forever!")
# Hope this helped!
# By Codexel