Skip to content

Instantly share code, notes, and snippets.

@gunnarig
Last active September 7, 2018 20:30
Show Gist options
  • Save gunnarig/f026712eb21628cb8d01f463c65c374d to your computer and use it in GitHub Desktop.
Save gunnarig/f026712eb21628cb8d01f463c65c374d to your computer and use it in GitHub Desktop.
while True:
original = input("Enter a word: ")
stop = ['.']
if original == '.':
break
pyg = ('ay')
word=original.lower()
first= word[0]
new_word = word + first + pyg
new_word= new_word[1:len(new_word)]
if len(original) > 0 and original.isalpha():
print(new_word)
else:
print("empty")
print()
######dog
#scratch
#apple
#brb
#donald
#trump
#liverpool
#grumpy
.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment