Okay, so you can change an element in a list with simple number values this way:
>>> a=[1,2,3,4,5,1,2,3,4,5,1]
>>> for n,i in enumerate(a):
... if i==1:
... a[n]=10
...
>>> a
[10, 2, 3, 4, 5, 10, 2, 3, 4, 5, 10]
and with list comprehension:
>>> a=[1,2,3,1,3,2,1,1]
>>> a = [4 if x==1 else x for x in a]
>>> a
[4, 2, 3, 4, 3, 2, 4, 4]
But if I have a list of dictionaries, can I change not only an element but one of its property as well, using list comprehension? Is there some expression for that?