#import the cmath module
import cmath

#print the Eulers number
print(cmath.e)

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).

cmath.e

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

import cmath
import math

print(math.log(10, cmath.e))