Welcome to the Pig Latin Translator!
Enter a word: sdfdf
Traceback (most recent call last):
File "python", line 4, in
TypeError: object of type 'builtin_function_or_method' has no len()
What is the error with line 4? Everything seems to be correct.
print 'Welcome to the Pig Latin Translator!' raw_input("Enter a word:") original = raw_input if len(original)>0: print original else: print "empty"