Move it on back 9/11


#1

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


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[0]
new_word = "word " + "first " + "pyg "


#2

You have the variable names in quotes... That makes them string literals instead of accessing their stored value.


#3

Really struggling here!!
Please help!!
This is what I have:

pyg = 'ay'

original = raw_input('Hi:')

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

It says:
Oops! Did you accidentally delete the 'word' variable?

Thanks!!


#4

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[0]
new_word = word + first + pyg


#5

can someone help me please i don't know how to do it
pyg = 'ay'

original = raw_input('Enter a word:')

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

else:
print 'invalid'

word = original.lower()
first = word[0]


#6

done it but thank you for being there to check it out
:slight_smile: