Ok, here is the code that works for me:
- pyg = 'ay'
- original = raw_input("Enter a word:")
- If len(original) > 0 and original.isalpha():
- word = original.lower()
- first = word
- new_word = new_word[1:len(new_word)]
- Print new_word
- print "empty"
Here is my question: when the user is prompted to enter the word in the console (in this case the word I chose is "Adam").... how does it know to add the first letter of the word and (ay) to the end?
Is it because I concatenated lowercase, (a), and (ay) in the previous exercise?