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


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
  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!


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


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


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