How do I create a simple curve in python?

Thanks for the response.
I can partially see how that works. I’m assuming that I’d have to create a ‘PATH’, goto edit mode, select control points and then move/subdivide to get them where I want them. Is that the basic idea?
How do I select control points in python? That’s not showing up in the console.

Thanks!
-dave