Check yourself! "error: code looks bit off"


#1

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)
else:
    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()
`


#2

HI these lines

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

chang it to

original = raw_input ("Enter a word:")

#3

Thanks a lot :smile:


#4

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