why is my terminal in the code academy going blank, when I press next after doing python
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
print(“Hello and welcome” + my_name+"!")
you will then see this on your terminal on the right
Hello and welcomeCharu!
Just refresh the page to bring it up. It happens in a lot of the lessons.
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
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:
Shouldn’t it be “22” instead of “2*2”?
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 "22" printed on the screen try:
Notice everything between the first two
*'s is in italics, and the
*'s are not visible.