question about plotting points and calculating the average slope
I have a list points to plot like:
X = [3.2467532467532467, 3.236245954692557, 3.215434083601286, 3.1746031746031744, 3.125, 3.0864197530864197, 3.048780487804878, 3.003003003003003, 2.9239766081871346, 2.840909090909091, 2.8011204481792715, 2.7624309392265194, 2.73224043715847, 2.680965147453083, 2.6525198938992043]
Y = [1.449645784571558, 1.4733737963401687, 1.4065612375015262, 1.7345137207779688, 1.8754959195583569, 2.1035354414847736, 2.1388130187811201, 2.3224700713378144, 2.6092616151384149, 2.9660818973522378, 3.1351199784336701, 3.2953129727168911, 3.4245247041968971, 3.5986044560957482, 3.7007780808250552]
how can I plot X and Y? plot(Y, X) returns ValueError: too many values to unpack
And I must also find the average slope. how to find that?