Pyglatin Variables Lost


#1

<PLEASE USE THE FOLLOWING TEMPLATE TO HELP YOU CREATE A GREAT POST!>

<Below this line, add a link to the EXACT exercise that you are stuck at.>
https://www.codecademy.com/courses/learn-python/lessons/pyglatin/exercises/pop-quiz?action=lesson_resume&link_content_target=interstitial_undefined

<In what way does your code behave incorrectly? Include ALL error messages.>
At this point I just feel not smart enough. I thought I had the codes and variables and how they work, at this point I am just so confused I keep putting things like “original” and such in the wrong places. I have no idea what I am doing but then, I check it, it gives me the code and I actually got it. So at this point if anyone can help me as to other help, this program seems to be a lot more difficult in explaining than others. Then again maybe I need more training. I don’t get it or do I. I am so frustrated!

<What do you expect to happen instead?>
Does anyone have any websites or examples where i could learn more?

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 "empty"


#2

Hi @designrunner80701,

Your Python code looks good. Try this, and let us know if it works …

  • Refresh the page.
  • Run the program again.
  • At the prompt, enter a word that contains only letters.

#3

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