Coding in Python – infinite loops

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:

while True:

print(“Hello, World!”)

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 😎

11 thoughts on “Coding in Python – infinite loops

    1. Yeah! I am using Python! I know your browser will be awesome too! Sorry to say that in the first build of ECG SeaSurf there won’t be a bookmarks bar sorry. I wonder whether you could post some tutorials on your blog about coding in C++ πŸ™‚


      1. Cool! I will also write tutorials on my blog of how to make a more basic web browser with a different name in Python.

        Development of ECG SeaSurf is going really well at the moment.

        Please reply to my comment if you want to πŸ™‚


Go on, you know you want to! Leave a comment

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: