Reddit Trolling and Other Infinite Loops: A Tale of Learning Python

Kiki Schirr
Nov 23, 2015 · 2 min read

In case you haven’t tuned in previously, I’m making a point of learning a tiny bit of Python every day (*cough*sporadically*cough*) and I’m using THIS AMAZING BOOK.

Today’s section of Python Programming for Absolute Beginners discussed infinite loops. Here’s the bastardized example I used to display an infinite loop:

Which I then ran:

…and then realized that I had no idea how to stop it from running. I panicked, mashed buttons, and then finally, let it run while I read on further in the book, where it told me to hit Cntl-C.

*sigh*

The book then suggested tracing the program, a process in which you basically run the math by hand in table format, to try to see why your program is failing. In this instance, the value of “faith” never met the “true” condition of “0” — our heroine’s faith in humanity simply skipped into the negative digits as she slowly spiraled into ever-decreasing despair.

…come to think of it, this is not unlike my actual experiences on Reddit.

Kiki Codes

Learning to Code in Public

Medium is an open platform where 170 million readers come to find insightful and dynamic thinking. Here, expert and undiscovered voices alike dive into the heart of any topic and bring new ideas to the surface. Learn more

Follow the writers, publications, and topics that matter to you, and you’ll see them on your homepage and in your inbox. Explore

If you have a story to tell, knowledge to share, or a perspective to offer — welcome home. It’s easy and free to post your thinking on any topic. Write on Medium

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store