Skip to content

Instantly share code, notes, and snippets.

@april
Last active December 18, 2022 21:03
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save april/57abbcba1339e14fbb13fb3a1db6c21c to your computer and use it in GitHub Desktop.
Save april/57abbcba1339e14fbb13fb3a1db6c21c to your computer and use it in GitHub Desktop.
python infinite loop printing @april@macaw.social
# demonstrating an infinite loop in python
while True:
print("check out my profile on Mastodon - @april@macaw.social")
@dorjechang
Copy link

dorjechang commented Dec 18, 2022

Wow, so cute! And I (oh, dunce!) always tried to write it like this:

loop:
  print("check out my profile on Mastodon: @dorjechang@mastodon.online")
goto loop

and wondered why Python swears on me.

@april
Copy link
Author

april commented Dec 18, 2022

Glad I could be part of your learning experience! Have a lovely rest of your weekend!

@bensonk
Copy link

bensonk commented Dec 18, 2022

I found this super helpful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment