Created
October 9, 2021 12:33
-
-
Save rswift/cd09709e69f204046cf46eded8a9c386 to your computer and use it in GitHub Desktop.
simple plurals in python...
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
# | |
# hat tip: https://stackoverflow.com/users/173003/aristide via https://stackoverflow.com/a/65063284/259122 | |
# | |
# shamelessly copied and included here for easier self-location! | |
# | |
for i in range(5): | |
print(f"{i} bottle{'s'[:i^1]} of beer.") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment