9. Move it on Back



It says Oops, try again. It looks like new_word equals "word first pyg" instead of "kkay"!

Why does this not work? I followed the instructions.

pyg = 'ay'
word = original.lower()
first = word[0]
new_word = "word " + "first " + "pyg"
original = raw_input('Enter a word:')

if len(original) > 0 and original.isalpha():
    print original
    print 'empty'



new_word = "word " + "first " + "pyg"

why do you use string? why not the variables of the first three lines?


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.