Python #03 | First python program | using as calculator

PYTHON #3

First python program | using as calculator


As in other languages like C, C++, java we do calculations similarly we can do calculations in python by the operators in maths

Like + ,- ,/ ,*, **

  1. +  adds
  2. - subtracts
  3. * multiplies
  4. / divides returns value in floating value
  5. // divides and leave remeander
  6. ** exponent
  7. = equals or not return value in True or False 
  8. != not equals use in loops or conditionals
  9. <,>,= use in comparison
For calculations we simply do:
    a=34
  b=6
    a)c=a+b
        print(c)
_____________________
OUTPUT
40

b) print(a+b)
_____________________
OUTPUT
40

By Onik Dhall 
Owner of Coding Only
Mail Id-
    coding.only1@gmail.com
Channel-

Comments