Posts With Tag: Python

Using the While, Else Statement in Python

Using while/else statement in Python unironically in a code that Kutay wrote

In Python, there is something that even the creator of Python despises. The thing that I am referring to is the "while, else" statement. Some context is that I was in a computer science course and we had to create some text-based game, and I—unironically—used the forbidden technique, the while else statement. The section of code that uses while else is given below, and for the interested, the full code is at the bottom of the page.

1 of 1

Subscribe to my newsletter to get updates on new posts and occasional email special posts.