CONDITIONALS & CONTROL FLOW Else Problems, I Feel Bad for You, Son


#1

Hello! Please help me with the following lesson:


HERE are the instructions:

  1. On line 4, use raw_input("Enter a word: ") to ask the user to enter a word. Save the results of raw_input() in a variable called original.

Click Run

Type a word in the console window and press Enter (or Return).


HERE is my code:

print ‘Welcome to the Pig Latin Translator!’

#Start coding here!
original = raw_input("Enter a word: ")


IN THE CONSOLE, I get this:

Welcome to the Pig Latin Translator!
Enter a word:

**I type in a word, press enter, but I get a RED ‘x’ in the instructions box, stating the task is not completed.

I don’t understand what’s wrong…

Thank you!


#2

UPDATE:

I literally copied my code, DELETED the code, RE PASTED the code, and it works…

Is this a problem with Codecademy in general?

Same problem occured on the following exercise as well. Wrote the code, got a “red ‘x’”, but then re-pasted the exact same code and re-ran the test and it worked…


#3

Could be a bug related to Codecademy but since you didn’t share the lesson link, we couldn’t test it faster enough to answer your problem. Anyway, glad you made it work :smiley:


#4

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