Word Up



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

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


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


4 posts were split to a new topic: Word up


A post was split to a new topic: Word up