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
3 Respuestas
+ 8
print(5+2)
continue the tutorial!!! ~_~
+ 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.
+ 1
thank you guyzz that was helpful :)