Computation


Computation in Python

The computation in Python work similar to those of regular calculator. 

Computation operators

  • x +y   Addition
  • x-y    Subtraction
  • x*y    Multiplication
  • x/y     Division
  • x//y    Floor division
  • x**x   Exponent

Computing simple math

>>> 
>>> 2+3
5
>>> 5+6
11
>>> 8+99
107
>>> 111+55
166
>>> 112+99
211
>>> 12+88
100
>>> 
>>> 
>>> 7**7
823543
>>> 88/6*33
484.0
>>> 

Note




Comments