Here is the different step to importing and using Python modules:

On this picture we can see two ways to do it:

  1. Write « import math » or « from math import (MathObject)
  2. You can assign your MathObject to a variable
  3. You have to use the instruction « print » to display this variable on your terminal

Capture d’écran 2015-09-18 à 15.31.24

Have a good day !

CC BY 4.0 Masteries 10 and 13 by aureliemartinette is licensed under a Creative Commons Attribution 4.0 International License.