+ 3
Why is Python console on "code playground" not performing simple mathematical operations?
I entered 2+2 on the console.When I hit the "Run" button, it shows "no output". Please help! https://code.sololearn.com/c85nkQ1R5cow/?ref=app
3 odpowiedzi
+ 12
It will work in the Python Interactive Prompt.
In the tutorial , did you see those " >>>" ? Those are part of that prompt..Here in Code Playground you have to use the "print" function to actually print something
+ 3
@Tom
But according to tutorial there is no need to use "print" function for getting output of these simple numerical operations
0
I guess print(2+2) (I don't know py)