Calculate | Sololearn: Learn to code for FREE!



Why I put 1+1, but there is no output?

7/15/2019 11:24:48 PM

Desmond Wang

2 Answers

New Answer


If you are using the Python shell, e.g. in IDLE, then you will see the prompt: >>> If you type 1+1 and hit enter, you will get 2: >>>1+1 2 However if you are typing a code that has to be "run", e.g. in the Code Playground, there is no >>> prompt and you have to enter commands such as print() to get an output on the screen.


Because you have not outputted the value somewhere, or even stored it. print(1+1) will help you see your result