Here is a code i wrote that imports and use the math module:

The math module is useful to do calculations, on this example i used math.sqrt() because i didnt know that x ** 2 == x^2
Here is another code with another module, this time the statistics module:

I used statistics.stdev() to calculate the standart deviation, i did this because i didnt want to build the formula myself.

CC BY 4.0 Mastery 13 – Python modules by Jose Carlos Peñuelas Armenta is licensed under a Creative Commons Attribution 4.0 International License.