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


#1



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


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]
else:
    print 'empty'


#2

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


#3

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?


#4

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


#5

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