Why is nothing showing up in the right panel?


#1

Question

I’ve written my code with comments describing my variables, but the values aren’t being displayed to the terminal. Why is this?

Answer

The only time something will appear is when you write code to make something print to the screen. In this exercise we’ve made a variable that holds an integer value, but we didn’t print it out. If you wanted to see its value printed out, you could write print city_pop, for example.


FAQ: Learn Python - Python Syntax - Comments