Pyg latin - 5.Check yourself...some more


#1

Good evening,

Here is my current code:

print 'Welcome to the Pig Latin Translator!'

# Start coding here!
original = raw_input("Enter a word: ")
if len(original) > 0 and original.isalpha():
  print original
else:
  print "You forgot to enter a word!"

I get the error message “Oops! Did you accidentally delete the variable named original?”

Any suggestions? Thank you for your time!

-N

Update :: After I refreshed the browser a couple times it went through, didn’t change the code at all.


#2

well this is very strange, I see no errors on this code and it worked on both on my Python IDLE and the Pyglatin course on python. It should work - considering I just tried it on 2 platform, the problem must be the webpage itself - try resetting the web browser and run the code again to see if it works


#3

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