0

I am beginner to this language... Can any one tell me how to add subtract multiply and divide in python?

Actually according to lesson in code playground i am directly putting 5+2 but its showing no output... plz help

13th Jan 2017, 7:01 PM
Vishal Srivastava
Vishal Srivastava - avatar
3 ответов
+ 8
print(5+2) continue the tutorial!!! ~_~
13th Jan 2017, 7:03 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 2
you can use variable to do that if you are not familiar with interpreted language like Python. here's few examples for addition a=6; b=3; c=a+b; d=a-b; e=a/b; f=a*b; and to output these you just have to call variable name, no print function like c;d;e;f; c gives 9 d gives 3 e gives 2 f gives 12 n likewise.
13th Jan 2017, 7:18 PM
Dipak Chauhan
Dipak Chauhan - avatar
+ 1
thank you guyzz that was helpful :)
13th Jan 2017, 7:25 PM
Vishal Srivastava
Vishal Srivastava - avatar