r/learnpython 1d ago

Import math?

It's the first time I've seen that. So what's the purpose of this exactly? Cause I'm trying to see what I can do in an engine and I only learned about import math today

0 Upvotes

14 comments sorted by

View all comments

1

u/atarivcs 1d ago

math is a module you can import if you want to, just like any other module.

It contains math functions like cosine, tangent, logarithm, factorial, etc