Pig Latin doesn't work


#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/testing-testing-is-this-thing-on-?action=lesson_resume&link_content_target=interstitial_undefined

<In what way does your code behave incorrectly? Include ALL error messages.>
It prints “Hello”

<What do you expect to happen instead?>
It should print “Ellohay”

```python

Replace this line with your code.

<do not remove the three backticks above>

#2

Its difficult to say without your code, but it seems you print original while you should print new_word to get the pyglatin version, if you need more help, post your code


#3

Thanks you for your answer. I am printing new_word, but it still says only “Hello”


#4

No? raw_input is a function which prompts you for input (while program is running), so in the output window (the black one the right hand side) you need to type a word into the prompt, then press enter to submit the word, then the resto f the program will run

the Enter a word: Hello is only the string displayed when prompting for input, so that string would be better if it was:

raw_input('Enter a word: ')

#5

Ah, I see now. Thank you for your help.


#6

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