I apologize for the poorly worded title, but I am very new to Python and coding in general. I'm assuming that my question is simple, but I haven't been able to find the help I am looking for. Here is the code I have right now:
for i in xList:
dif == (xList[i+1] - i)
What I am trying to do is take all of the values in the list, find the difference between each value, and then find the average difference. Please provide any help. Thank you for your time!