04: Mathematical Formulae
We’ve seen how Python can be used as a simple calculator. We have expressions for basic functions (multiplication, addition, etc.); but what if we wanted to do something more complex? Let’s take a look at Python’s math library. Setting Up “Math” To access the math library, you’ll first have to import the library to your current programming session. Use an import statement at the top of your new document. import math »