You need what's called a while loop. It repeats code until a certain condition is met. However, you can also make it so that condition is unreachable, so it repeats forever. It looks like this:
while (true):
print('This code repeats forever!')
print('This line is never reached')
You need what's called a
while
loop. It repeats code until a certain condition is met. However, you can also make it so that condition is unreachable, so it repeats forever. It looks like this: