Programming with Python

  1. Home
  2. Docs
  3. Programming with Python
  4. Modules in Python
  5. Math Module in python

Math Module in python

Math module is designed to deal with mathematical operations.

Math module has many functions which is used to solve mathematical operations. It has a number of constant values also.

Functions in math module are sqrt(), sin(), cos(), log(), tan(), pow(), etc.

Constant values in mathematical operation are pi, e, etc.


import math
Output- 12


import math
Output- 2.718281828459045

This is all about math module in python.

Was this article helpful to you? Yes No

How can we help?