0

how to write it

i mean we have to Type 2+2 and then 4 appears or what

5th Oct 2016, 8:53 PM
Sukhman Khehra
Sukhman Khehra - avatar
3 Respostas
+ 1
no, this works not in the playground. Here you have to use the print function to get an output. print (2+2)
5th Oct 2016, 10:02 PM
Amarie
+ 1
no, we have to assign 2+2 to a variable then print it ex. var= 2+2 print (var)
8th Oct 2016, 6:36 PM
Shubham Kumar
Shubham Kumar - avatar
0
If you want an output of 2+2 then you may want to use the print() function. The operation however should still be carried out, but you still have to express what you want to do with a statement.
5th Oct 2016, 11:55 PM
Alejandro Santillana