Create a 1D Coordinate System in Pyhtons blender

Create a 1D Coordinate System in Pyhtons blender

I am in the process of learn Python to be use in Blenders Python Cancel and Text editor

And I starting a math book on 3d math. Primer

and First lesson is
on

											1 Cartesian Coordinate System 

1D Coordinate System Mathematics

To start this step by step

first what are all necessary Importing modules.
I need to have imported into bpy
so I can see visualization feedback
in 3-D view port?