subtract in list within a list python code example
Example 1: python subtract every element in list
a = [x - 13 for x in a]
Example 2: subtract list from list python
>>> z = list(set(x) - set(y))
>>> z
[0, 8, 2, 4, 6]
a = [x - 13 for x in a]
>>> z = list(set(x) - set(y))
>>> z
[0, 8, 2, 4, 6]