Word Up


#1


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


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

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


#2

These two lines should be at the end of the file:

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

you want to convert the word to lowercase, to achieve this, remove quotation marks:

word = original.lower()

This should be done after the if else statement, since it converts the user input and you want to sure the input is valid before continue


#3

4 posts were split to a new topic: Word up


#7

A post was split to a new topic: Word up