Check yourself


#1

i dont understand the error message


#2

Whats the variable "orginal"? :grin:


#3

isn't it set to raw_input()?


#4

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.


#5

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


#6

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


#7

ohhhh oops, thanks! it worked


#8

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.


#9

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


#10

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()


#11

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
else:
print "empty"

I hope this will help.


#12

methodrockstar88611

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

it should work see below:


#13

cool thanks :slight_smile:


#14

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