Addition,Subtraction,Multiplication ,Division

Hello Everyone...
In this we post we will learn the basic arithmetic operations in Python...

Before that ..
In Python we have to modes,they are
1.Interactive Mode:
      In this mode ,we directly execute code to Python prompt.
Example:
           >>>2+6
   8

         
2.Script Mode:
           In this mode,we save our source code into a file with .py extension and then we run our file in our python shell.
      Example:
                   python myfile.py


In this post,we deal with the Interactive node.
Here we go ...
Addition,subtraction,multiplication and division in python.

Generally,in python comments are start with # symbol .

See the below picture....


Here we didn't use any variables right now,just we did like we do in our calculator right??
And this is the piece of code we start in python...

Hope you guys Like it...
Please Subscribe our blogs for more interesting topics..
Stay tuned..
Thanks.



Comments