PygLatin. Word Up


#1




Hello.
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?

Error:
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
else:
    print "empty"


#2

The problem is on this line,

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

original.lower()


#3

Ohhh, my inattention. Thank you!


#4

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