Wordup exercise of PygLatin


#1

Hello friends,

I have got strucked with the Word Up Exercise of PygLatin. Please see the below code and the error ,suggest what to make it work.
Thanks
sam

original = raw_input('Enter a word:')

if len(original) > 0 and original.isalpha():
print original
word = "ORIGINAL"
word = word.lowercase()
first = word[0]
print first
else:
print 'empty'

The Below Error being displayed when executed the above code

Traceback (most recent call last):
File "python", line 8, in
AttributeError: 'str' object has no attribute 'lowercase'


#2

The python syntax for lower case isn't lowercase(), its called by lower(), like so:

word = word.lower()

#3

The error got fixed,Thanks