Word Up: .lower() seemingly not working, yet it says it is



There are no error messages. I think the code thinks it is already correct, yet it isn't

Any words I write in aren't being converted to lower case, like it is supposed to.

Replace this line with your code. 
pyg = 'ay'

original = raw_input('Enter a word:')

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


the lowercase conversion is successful, you just don't print it


Then why is it necessary to make it lowercase? If I cannot see that is lowercase when the program is run, what's the point?


you are building a translator, not everything has to be printed.

you will use the lowercase later in your program

You can always print it, if you really need to


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.