Check Yourself, Some more!


print 'Welcome to the Pig Latin Translator!'

Start coding here!

variable_name = raw_input("Enter a Word:")
original = raw_input()
if len(original) > 0 :
print variable_name
print ("empty")

What am I doing wrong? Can I have the correct code please?


You don't need the first line. You can just say:

original = raw_input("Enter a word: ")

Also, while you're checking to see if length is greater than 0, you also want to check to see if what you entered "isalpha". There is an example in the instructions. In your first if statement, you should print original since you're getting rid of variable_name.


I'm passed it now don't worry xD


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