Welcome to the Pig Latin Translator!
Enter a word: Doug
Traceback (most recent call last):
File "python", line 5, in
TypeError: object of type 'builtin_function_or_method' has no len()
When I'm running this code it lets me enter a name but then throws the error above. I'm confused because I don't know what len(original) is and how I'm supposed to use it in this exercise. Did I miss a lesson where they explained what len() is and how to use it?
print 'Welcome to the Pig Latin Translator!' name = raw_input("Enter a word:") original = raw_input if len(original) > 0: print original else: print "empty"