Why is there no output in the terminal?

why is my terminal in the code academy going blank, when I press next after doing python

17 Likes

this question was related to a comment so if you had only a comment in the code, then python will not execute it. however if below the comment you had also submitted a line of executable code, like below
#my first code welcomed users to the class
my_name=“Charu”
print(“Hello and welcome” + my_name+"!")
you will then see this on your terminal on the right
Hello and welcomeCharu!

16 Likes

Just refresh the page to bring it up. It happens in a lot of the lessons.

1 Like

But I wonder why that is when I refresh the page it loads immediately but without refreshing it seems to be stuck in a infinite loading loop.

Hi I put this in and I would like to know what I did wrong in this program that no terminal shows up and why it just shows the number 4 right after

#this code will be used to do multiplications
2* 2
print(2*2)

I had thought it happens to me alone.

If you write(2*2) the program will calculate the answer ie. 4.
To have the string "2*2" printed on the screen try:
print("2*2")

Shouldn’t it be “22” instead of “2*2”?

print(“22”)

The forums markdown altered the meaning of @zeemafis’s post. Placing text between two *'s renders as italics. I edited the post for clarification.

So others can see the difference, it originally looked like this:

If you write (22) the program will calculate the answer ie. 4.
To have the string "2
2" printed on the screen try:
print(“2*2”)

Notice everything between the first two *'s is in italics, and the *'s are not visible.

1 Like

Make sure to:

  1. Refresh
  2. Use syntax
  3. Read error message
  4. Practice more variations