Getting "TypeError: unsupported operand type(s) for -: 'list' and 'list'"
Question: Hi I know there are a few people that had this issue but none of the solutions
I've seen are helping. I'm taking a set of data, reading the file then
creating arrays from the data to input into this equation: `Dist = 10 **
((app_m - abs_M + 5.) /5)` Where I app_m and abs_M are the arrays from the
data.

I'm using Python 2.7 and only just learning so if things can be explained as
simply as possible that would be great


Answer: you can not use `list` \- `list`

you can just change your code like this

    
    
    import numpy as np
    Dist = 10 ** ((np.array(app_m) - np.array(abs_M) + 5.) /5)
    

