Created
February 21, 2018 20:24
-
-
Save meehow/6c6003385dc54a9928c0f2ee330e57e2 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/usr/bin/env python3 | |
import sys | |
def piwo(ile): | |
output = 'piw' | |
if ile == 1: | |
return output + 'o' | |
if ile >= 10 and ile <= 20: | |
return output | |
if ile % 10 >= 2 and ile % 10 <= 4: | |
return output + 'a' | |
return output | |
if __name__ == '__main__': | |
print(piwo(int(sys.argv[1]))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment