Skip to content

Instantly share code, notes, and snippets.

@meehow
Created February 21, 2018 20:24
Show Gist options
  • Save meehow/6c6003385dc54a9928c0f2ee330e57e2 to your computer and use it in GitHub Desktop.
Save meehow/6c6003385dc54a9928c0f2ee330e57e2 to your computer and use it in GitHub Desktop.
#!/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