Plz help


#1

print 'Welcome to the Pig Latin Translator!'

Start coding here!

raw_input("What's your name?")
original = raw_input()
original = raw_input("Enter a word:")
if len(original) > 0:
print original
return True
else:
print "empty"
return True

plz help


Check Yourself
#2

Don't need these two lines:

BTW, they are written incorrectly, the first line should be stored under a variable, otherwise you can not access it like you tried on the second line.

And you return things for functions, currently your if statement isn't inside a function, so the return statements need to be deleted. That should fix everything. :slight_smile:


#3

Hi tmitchellwesterncent!
Calling for raw_input without assigning it to a variable does not do much for you! This is because you will not be able to use whatever was inputed!

In order for us to help you more than this, please add a link to the exact problem you are working on :slight_smile:


#4

Here's the link:

https://www.codecademy.com/courses/python-beginner-2W5v7/0/4?curriculum_id=4f89dab3d788890003000096


#5

Lol chipjumper36731, you edited your reply and made mine Irrelevant! Well helped!
tmitchellwesterncent I hope Your question has been answered!
Happy coding! :slight_smile:


#6

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