Help I'm Stuck


Traceback (most recent call last):
File "python", line 7, in
TypeError: object of type 'builtin_function_or_method' has no len()

I expected the program to print the word i inserted back to me in Pyglatin.
I followed the instructions to the letter, and I can't seem to finish this exercise.

print 'Welcome to the Pig Latin Translator!'

# Start coding here!
raw_input("enter a word:")

original = raw_input
if len(original) > 0: #what am i missing?
    #what is supposed to go here?
    print original
    print "empty"


Why not just simply store it in original like original = raw_input("prompt")? raw_input needs the prompt. It can't be just raw_input.


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