In [1]:
from math import pi
In [2]:
print(pi)
In [3]:
# print(math.radians(180))
# NameError: name 'math' is not defined
In [4]:
from math import pi, radians
In [5]:
print(pi)
In [6]:
print(radians(180))
In [7]:
from math import (
e,
exp
)
In [8]:
print(e)
In [9]:
print(exp(1))
In [10]:
from math import *
In [11]:
print(pi)
In [12]:
print(cos(0))
In [13]:
print(sin(0))