Check yourself! "error: code looks bit off"


I'm not able get the output, despite I'm trying to follow the instructions.

I do not understand the error at 'if' statement ,please help!

Print 'Welcome to the Pig Latin Translator!'

# Start coding here!
raw_input ("Enter a word:")
original = raw_input

if len(original) > 0:
    print (original)
    print "empty"

the error message is : Welcome to the Pig Latin Translator! Enter a word: Python Traceback (most recent call last): File "python", line 7, in <module> TypeError: object of type 'builtin_function_or_method' has no len()


HI these lines

raw_input ("Enter a word:")
original = raw_input

chang it to

original = raw_input ("Enter a word:")


Thanks a lot :smile:


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