ExampleEdit & Run
#import the cmath module
import cmath

#print the Eulers number
print(cmath.e)
Output:
2.718281828459045[Finished in 0.010908606927841902s]

The cmath(complex math) module in the standard library provides a set of functions and constants for working with complex numbers. One of the constants defined in the module is which holds the value of the Eulers number(2.718281828459045).

Syntax:
cmath.e

The Eulers number(e), among many things, is used as the  base of natural logarithms.

ExampleEdit & Run
import cmath
import math

print(math.log(10, cmath.e))
Output:
2.302585092994046[Finished in 0.010552798165008426s]