Newbi problem with Pig Latin Translator


Please help ! problem with code :

print 'Welcome to the Pig Latin Translator!'

original =raw_input("Enter a word")

original =raw_input

if len(original) > 0 and original.isalpha() :

print original

print "empty"

Welcome to the Pig Latin Translator!
Enter a word Konrad
Traceback (most recent call last):
File "python", line 8, in
TypeError: object of type 'builtin_function_or_method' has no len()


remove this line:

original =raw_input

this line:

original =raw_input("Enter a word")

is all you need, it has raw_input which is stored in original


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