regarding changing line properties while plotting in python using matpolib libraries

what is the syntax for this line in matlab, h=line([x1,x2],[y1,y2]) in python?.
Note: forwarded message attached.

···

Pinpoint customers who are looking for what you sell.

what is the syntax for this line in matlab, h=line([x1,x2],[y1,y2]) in
python?.

plot([x1, x2], [y1, y2])

Ali.