Pythonでのリスト同士の演算は定義されていない。減算を例に挙げると、
x = [10, 20, 100]
y = [10, 15, 90]
x - y
としたとき、
TypeError Traceback (most recent call last)
<ipython-input-4-c957f021dd35> in <module>()
----> 1 x -y
TypeError: unsupported operand type(s) for -: 'list' and 'list'
というエラーとなる。
そこで、リスト同士の演算をmap関数を使って行ってみる。
list(map(lambda a,b: x - z, x,y))
出力は
[0, 5, 10]
となる。減算をさらに、一般化させても便利かもしれない。