PygLatin. Word Up


I have this error, but don't understand where I make a mistake. My code are below. Can you give me a hint how it resolve?

Traceback (most recent call last):
File "python", line 8, in
TypeError: 'builtin_function_or_method' object has no attribute 'getitem'

pyg = "ay"

original = raw_input("Enter a word:")

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


The problem is on this line,

.lower is a method and it requires parentheses after it,



Ohhh, my inattention. Thank you!


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