Word up!did you create a variable"word"-error message.how do i resolve this?


#1

Continuing the discussion from Word up! "w" instead of "l" – error message:



https://www.codecademy.com/courses/python-beginner-2W5v7/1/2?curriculum_id=4f89dab3d788890003000096

oops! try again.Did you create the variable called word/
I expected my code to be run.

pyg = 'ay'

original = raw_input('Enter a word:')

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

#2

Hi the instruction says
1. Create a new variable called word that holds the .lower()-case conversion of original....


#3

Uhm... This is the code provided by the exercise, you seem not to have done either steps of the instructions?


#4

I mistakenly indented the codes while making the post,it doesn't reflect the original codes.sorry..here
pyg = 'ay'

original = raw_input('Enter a word:')

if len(original)original.lower() > 0 and original.isalpha()
word=original.lower
first=word[0]

print original

else:
print 'empty'


#5

NOw here

word=original.lower

try to add () to .lower Then this line

if len(original)original.lower() > 0 and original.isalpha()

you should remove the this part original.lower()


#6

Thank you very much buddy.