Check yourself


i dont understand the error message


Whats the variable "orginal"? :grin:


isn't it set to raw_input()?


I meant: The code is ok, but what do you think the CodeCademy parser tests for? It sets and tests "original" but your variable name is different.


mm still confused. what do i need to do exactly ?


You need to rename your variable to original, instead of orginal. That way it can be tested.


ohhhh oops, thanks! it worked


No Problem. Later on when using function parameters you will be able to name them whatever you want, but for now you have to use the exact same variable names so the editor does know them.


I need help too.
my code says this:
print 'Welcome to the Pig Latin Translator!'
raw_input("Enter a word:")
if len(original) > 0:
print original
print "empty"


but when I type the word 'help' it says this:
Welcome to the Pig Latin Translator!
Enter a word: help
Traceback (most recent call last):
File "python", line 6, in
TypeError: object of type 'builtin_function_or_method' has no len()


Hello, try saving the string like this :

print 'Welcome to the Pig Latin Translator!'
original = raw_input("Enter a Word:")
if len(original)> 0:
print original
print "empty"

I hope this will help.



on line 4 enter word I used python
line five where you have original = raw_input(python)

it should work see below:


cool thanks :slight_smile:


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