What is wrong with this function? Haaalpp



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

I want this to allow a user to enter their word, check to see if they entered more than one character, if they do, print their word, if 0, print empty

raw_input("Enter a Word:")
original = raw_input
if len(original) > 0:
        print original
        print "empty"


Should be...

original = raw_input("Enter a Word:")


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