Created
October 22, 2017 23:05
-
-
Save offby1/d1c7c0e9e97ddeea12d82c5902feb791 to your computer and use it in GitHub Desktop.
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
## 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