Skip to content

Instantly share code, notes, and snippets.

@offby1
Created October 22, 2017 23:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save offby1/d1c7c0e9e97ddeea12d82c5902feb791 to your computer and use it in GitHub Desktop.
Save offby1/d1c7c0e9e97ddeea12d82c5902feb791 to your computer and use it in GitHub Desktop.
## With a function:
def translate():
input_ = get_input()
output = english_to_pig_latin(input_)
clear_screen()
print(output)
if __name__ == "__main__":
translate()
### With a class:
class Translator:
def translate(self):
input_ = get_input()
output = english_to_pig_latin(input_)
clear_screen()
print(output)
if __name__ == "__main__":
translator = Translator()
translator.translate()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment