Help I'm Stuck


#1



https://www.codecademy.com/courses/python-beginner-2W5v7/0/4?curriculum_id=4f89dab3d788890003000096


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


#2

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.


#3

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