Ending up Why is the word repeating!


Why is the word repeating!!!

Oops, try again.
It looks like new_word contains "iiay" instead of "iay"!

pyg = 'ay'

original = raw_input('Enter a word:')
word = original.lower()
if len(original) > 0 and original.isalpha():
    first = word[0]
    new_word = word + first + pyg
    print new_word
    print 'empty'




you take the slice, but you don't store this slice anywhere.


I do not understand what you mean



x = "hello world"
print x # will output hello world

i take a slice of a string, but i don't store this slice anywhere, so when i then print x it will show the full string. i need to store the slice in a variable. So do you, how do you think this is done?


NVM I have already finished that lesson. :slight_smile: