+ 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

9th Mar 2018, 7:53 AM
Xiaomi1103
Xiaomi1103 - avatar
3 Réponses
+ 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
9th Mar 2018, 8:13 AM
Nikhil
Nikhil - avatar
+ 3
@Tom But according to tutorial there is no need to use "print" function for getting output of these simple numerical operations
9th Mar 2018, 8:04 AM
Xiaomi1103
Xiaomi1103 - avatar
0
I guess print(2+2) (I don't know py)
9th Mar 2018, 8:01 AM
Sad
Sad - avatar