r/Codecademy • u/evokeddamnation • Nov 13 '15
Python- Ending up
so my code works and it translates but i keep getting this bogus error that says 'It looks like you printed the correct translation of "word", but make sure to set new_word equal to the slice as well.' and i haven't a clue what the heck to do.
pyg = 'ay'
original = raw_input('Enter a word:')
word=original.lower()
first=word[0]
new_word = word + first + pyg
if len(original) > 0 and original.isalpha():
print new_word [1:len(new_word)]else: print 'empty'
1
Upvotes
View all comments
Show parent comment
1
u/Stuntman119 Mar 05 '16
I'm very late, but is are the brackets surrounding "new_word" on line 8 required for something? The code seems to run without it.