I'm having a hard time cooking up this bacon


#1

I'm not sure what is wrong with my variables word and first. Here is my code.


pyg = 'ay'

original = raw_input('Enter a word:')

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

#2

This line should have parentheses at the end like this

And, You no longer need this line because in on the next excercises you'll be printing out a different variable.


#3

but if you really want it there your code should look like this :slight_smile:

pyg = 'ay'

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

#4

Thanks a lot, that worked :slight_smile: