Word Up


#1

When I input the word 'Hello', it's returning as 'Hello'. However, shouldn't it be returning as 'hello'? (all lowercase).

print 'Welcome to the Pig Latin Translator!'

# Start coding here!
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

For that exercise is the correct, and expected result. :slight_smile:


#3

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