TypeError: unsupported operand type(s) for -: ‘list’ and ‘list’

You can’t subtract a list from a list. >>> [3, 7] – [1, 2] Traceback (most recent call last): File “<stdin>”, line 1, in <module> TypeError: unsupported operand type(s) for -: ‘list’ and ‘list’ Simple way to do it is using numpy: >>> import numpy as np >>> np.array([3, 7]) – np.array([1, 2]) array([2, 5]) … Read more

Bad operand type for unary +: ‘str’

You say that if int(splitLine[0]) > int(lastUnix): is causing the trouble, but you don’t actually show anything which suggests that. I think this line is the problem instead: print ‘Pulled’, + stock Do you see why this line could cause that error message? You want either >>> stock = “AAAA” >>> print ‘Pulled’, stock Pulled … Read more

File not found.