I am trying to get the first letter of my word to go to the end of my word and then add the 'ay' to the end of the word. When I run my code, it ask me my word. I enter my word and then it prints my word and then it prints none. I am not receiving an error. My word is Hello. Isn't it suppose to put my word all in small letters then move the 'h' to the end and add 'ay'?
Please help, I am confused.
pyg = 'ay' original = raw_input('Enter a word:') if len(original) > 0 and original.isalpha(): word = original.lower() first = word new_word = word + first + pyg new_word = new_word[1:len(new_word)] print original else: print 'empty'