diff --git a/Chapter_1/pig_Latin_practice.py b/Chapter_1/pig_Latin_practice.py index 4be1f7b..0a41527 100644 --- a/Chapter_1/pig_Latin_practice.py +++ b/Chapter_1/pig_Latin_practice.py @@ -1,18 +1,18 @@ """Turn a word into its Pig Latin equivalent.""" import sys -VOWELS = 'aeiouy' +VOWELS = "aeiouy" while True: word = input("Type a word and get its pig Latin translation: ") if word[0] in VOWELS: - pig_Latin = word + 'way' + pig_Latin = word + "way" else: - pig_Latin = word[1:] + word[0] + 'ay' + pig_Latin = word[1:] + word[0] + "ay" print() print("{}".format(pig_Latin), file=sys.stderr) - + try_again = input("\n\nTry again? (Press Enter else n to stop)\n ") if try_again.lower() == "n": sys.exit()