0

Why do I have to insert "print" to calculate sth?

I.e. 2+2, so, u should insert in the IDE the text that follows "print(2+2)" but sometimes if I just insert in the IDE "2+2" I get the same result. Yeah, I'm quite noob but that's weird Thanks in advance :-)

10th Nov 2018, 11:48 PM
jordiba90
jordiba90 - avatar
1 Resposta
+ 2
When you are in ide or in editor then you need to write print(2+2) And when you are in interpret session or running in shell then you only need to write 2+2 and you got the same result.
11th Nov 2018, 4:44 AM
Maninder $ingh
Maninder $ingh - avatar