What does 'import math' do?

Asked by emeka_nwankwo · 2 weeks ago

1 Answer

50
amorebise · 2 weeks ago Top Answer

It brings in a module full of advanced math tools—like square roots, sines, and cosines. As a physics student, I used this module every single day.

Instead of writing the complex formula for a square root yourself, you just say math.sqrt(16) and get 4. It’s fast and accurate.

Log in to add a comment.