Do you want a piece of code to repeat and repeat itself in Python? Well, read this guide and find out!
use while True: to make code repeat and repeat. For example, let’s say you want Hello, World! to continuously be printed onto the screen. You would use the following code:
Then save and run. You should see the text “Hello, World!” repeat continuously on the screen. Try doing other stuff than just “Hello, World!” and see what happens!
Epic Chas Gamer 😎