# math.e constant with example in Python

Python math.e constant: Here, we are going to learn about the math.e constant of math module with example in Python.
Submitted by IncludeHelp, on April 19, 2019

## Python math.e constant

math.e constant is a predefined constant, which is defined in math module, it returns the value of mathematical constant "e", the value is 2.718281828459045

Syntax of math.e constant:

```    math.e
```

Return value: float – that is the value of mathematical constant "e".

Example:

```    Input:
print(math.e)

Output:
2.718281828459045
```

### Python code to demonstrate example of math.e constant

```# python code to demonstrate example of
# math.e constant

# importing math module
import math

# printing value of e
print("value of e = ", math.e)
```

Output

```value of e =  2.718281828459045
```

Reference: Python math library

Languages: » C » C++ » C++ STL » Java » Data Structure » C#.Net » Android » Kotlin » SQL
Web Technologies: » PHP » Python » JavaScript » CSS » Ajax » Node.js » Web programming/HTML
Solved programs: » C » C++ » DS » Java » C#
Aptitude que. & ans.: » C » C++ » Java » DBMS
Interview que. & ans.: » C » Embedded C » Java » SEO » HR
CS Subjects: » CS Basics » O.S. » Networks » DBMS » Embedded Systems » Cloud Computing
» Machine learning » CS Organizations » Linux » DOS
More: » Articles » Puzzles » News/Updates