# How to find cosine of an angle using Python?

PythonProgrammingServer Side Programming

Python comes with an amazing standard math library that provides all trigonometric functions like sin, cos, etc. You can import that library and use these functions. Note that these functions expect angles in radians. For example,

import math
print(math.cos(angle2))
6.123233995736766e-17
0.5