Issues with word up .lower


#1

Hey guys, i punched in the code below and instead of changing the font to lowercase, it printed the word the same exact way I input it.

I typed in BANANA and it printed BANANA. What am I doing wrong?

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

You're not printing word, which is original.lower, you're printing original
:)))


#3

Ah jeez. Thanks! :flushed:


#4

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