Python 3 Maths Function. | pycoder

Python3 Numbers and built-in Math Functions





In this section, we will be learning about Numbers and various Math function available in python language. In number, we will see some of the most commonly used math operators that we can use to perform various operations on the numbers in python.

Numbers

in python we have 6 basic mathematical operators, they are:

  1. Addition
  2. Subtraction
  3. Multiplication
  4. Division
  5. Modul
  6. Power
Addition 

>>>8+9
17

Subtraction

>>>9-8
1

Multiplication

>>>8*9
 72

Division

>>>9/3
3

Module
>>>124%3
1

Power 

>>>2**2
4

No comments:

Powered by Blogger.