I need help with on of the function to calculate cycle Python.
> for Elem in ElemList:
print("Processing...") ElemTurn = int(Elem.get('turn')) ElemTime = int(Elem.get('time')) a = ElemTime print('Turn', ElemTurn) print('Time', ElemTime)
Process finished with exit code 0
How for example can I calculate time from Turn 2 minus time from Turn 1, then time from Turn 3 minus time Turn 2, then time from Turn 4 minus time from Turn 3 etc and how to output it?