original = raw_input('Enter a word:')
pyg = 'ay'
first = word
word = original.lower()
new_word = word + first + pyg
new_word = new_word[1:len(new_word)]
if len(original) > 0 and original.isalpha():
It worked the very first time on the step before, but when I tested it again it used the same word from the last slide instead of the new one I typed in. After that No matter the word it kept thinking the first letter to add to the end was from the previous word.
Example: new word: "Hello" previous word I tried: "Dog"
Then if I tried say "Shirt" after it would give hirthay.
Is this an error in my code?