martes, 27 de octubre de 2015

Mastery 13 - Python modules

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.

No hay comentarios:

Publicar un comentario