Exercise: Ending up
Output is given which is same as my input. Also can't understand the logic of executing the program. Specially these two lines:
new_word= word + first+ pyg
pyg = 'ay' original = raw_input('Liverpool') if len(original) > 0 and original.isalpha(): word= original.lower() first=word new_word=word[1:len(new_word)] new_word= word + first+ pyg print original else: print 'empty'
Help will be heartily appreciated!