4. check yourself


#1

Guys, good afternoon.
What is wrong with my code?

print "Welcome to the Pig Latin dictionary"

raw_input("enter a word")
original = raw_input
if len(original) > 0:
print original
else:
print "empty"


#2

So, you should have after your print statement a variable called original that is equal to raw_input, like so:

original  = raw_input("wut ur name")

Then have a variable called empty_string that is a empty string:

empty_string = ""

Then finish your code like you have it.
And that should fix your problems :smiley:


#3

Thanks mate, that was really helpful


#4

Your welcome. Please mark my post as the solution, which is by the like button


#5

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