I want a bit analytical respond for the mistakes I have done in my code cause I am new to programming. I am using ArcGis 10.2. and I must process a field with distances in an attribute table I have. Through my python code I am trying to put my field (MO) in a list so as to use it as list. But as much as I tried I didn’t get anything.
My field MO is like: 2367 2356 2352 2347 2345 2337 2331 2304
And here is my code:
MO = [MOBIL]
L = len(MO) - 1
MO[0] = MO[0] - 10
for i in range(M):
MO[i] = MO[i] - MO[i+1]