Why does nothing happen when I press Run?



Why does nothing happen when I press Run?


If you see “What is your name?” printed to the terminal window on the right, then it’s just waiting for you to type your name, press enter, and then answer the next two questions in the same way. When it’s done taking input from you, it will display the string you’ve built and pass the exercise.
If you just see a black screen when you press Run, be sure that you’ve used string formatting correctly and if that doesn’t work, try these few steps:
Be sure to use Chrome, it’s typically the most reliable,
Clear your browser’s cache and press Cmd + Shift + R (Mac) or Ctrl + F5 (Windows),
Or check out our official troubleshooting guide

FAQ: Learn Python – Strings & Console Output – String Formatting with %, Part 2

both the explanation here and the lesson are clear as mud.


go back and read lessons.also read faqs.


2 posts were split to a new topic: What do These Backslashes Do?


For some reason, the program doesn’t take any input after the first time I hit Enter (user-side). I would love to find out why, but this tutorial seems to ignore this issue of unexpected behavior.


I have no idea what I’m supposed to do. When I ask it to reveal the solution nothing happens. I am totally stuck.


I would like to comment that this exercise is not working for me. I still do not understand it even after clicking to reveal the solution. I would very much appreciate a step by step from someone who did complete this exercise. I’m pretty sure I’m just overthinking it, but I can’t seem to get it right.


so this is my code
name = raw_input(“What is your name?”)
quest = raw_input(“What is your quest?”)
color = raw_input(“What is your favorite color?”)

print "Ah, so your name is %s, your quest is %s, "
“and your favorite color is %s.” % (name, quest, color)

This is also the code if you press solution, but It wont let me type in my quest it goes What is your name? and you answer your name, then it asks What is your quest?What is your favorite color? and I don’t understand why help would be amazing.


To my understanding, when you put %s into the code, you are telling Python to substitute a string data type right there. Think of %s and substitute string. If you use %d you are telling Python that you want to substitute an integer decimal value. The % also converts data types, such as from decimal to string.
If you want to learn more, you can look at the link below. Yes, it talks about data types at first, but about half way down it talks about the substitutions.


I am sorry if I have confused you at all or if I am mistaken.


thanks ill see if it helps. If you enter the code youll notice it doesn’t work properly for some reason.


The most simple and working solution with this issue I was able to find was to divide default code lines with empty line by presssing Enter. So, it must be like this:

1 name = raw_input("What is your name?")
3 quest = raw_input("What is your quest?")
5 color = raw_input("What is your favorite color?")

And if my following code is right - it works fine. Even after pressing reset button - works fine without changing the first three lines.
Don’t know why it worked, though.