Do you want to know the details about “sin and cos in python”. If yes, you’re in the correct post.

## sin and cos in python

```
import math
angle_in_degrees = 45
angle_in_radians = math.radians(angle_in_degrees)
sin_of_angle = math.sin(angle_in_radians)
cos_of_angle = math.cos(angle_in_radians)
```

```
#A demo of sin() function
from math import sin
from math import cos
```

## Conclusion

I hope this tutorial helps you to know about “sin and cos in python”. If you have any doubts regarding this tutorial please let us know via the comment section. Share this post with your friends and family via social networks.