Hi everyone. So I have a code in Ending Up chapter and I can't understand what's wrong with it? Can you please help? So this is the code:
pyg = 'ay' original = raw_input('Enter a word:') if len(original) > 0 and original.isalpha(): print original else: print 'empty' word = original.lower() first = word new_word = word + first + pyg new_word[1:len(new_word)]
And then I press Save and Submit code and need to enter a word. I enter a word, for example - "Python" and that Oops, try again message pops up. It says:
It looks like new_word contains "pythonpay" instead of "ythonpay"!
So I can't understand what is happening. Can someone explain please?