Created
July 6, 2019 06:14
-
-
Save eyaltrabelsi/deb323c987c564610a45f3a1a8764caa to your computer and use it in GitHub Desktop.
Python trick why else construct
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
i = 5 | |
while i > 1: | |
print("Whil-ing away!") | |
i -= 1 | |
if i == 3: | |
break | |
else: | |
print("Finished up!") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment