programing python in blender

hi i understand python but how do i learn to program it in blender?