Hello guys
good day
I have a list of 4 points with x values:
[{'X': 2593.75}, {'X': 2457.42}, {'X': 2593.75}, {'X': 2457.42}] <class 'list'>
for example x(1) is:
{'X': 2457.42} <class 'dict'>
Now I need to calculate for example difference between x(1) and x(2) values:
diff = abs (x(1)-(2))
but i receive an error:
unsupported operand type(s) for -: 'dict' and 'int'
Would you please help me how to fix this problem? How can I get X integer values?
Thanks in advance for your help!
good day
I have a list of 4 points with x values:
[{'X': 2593.75}, {'X': 2457.42}, {'X': 2593.75}, {'X': 2457.42}] <class 'list'>
for example x(1) is:
{'X': 2457.42} <class 'dict'>
Now I need to calculate for example difference between x(1) and x(2) values:
diff = abs (x(1)-(2))
but i receive an error:
unsupported operand type(s) for -: 'dict' and 'int'
Would you please help me how to fix this problem? How can I get X integer values?
Thanks in advance for your help!