I want to know if there is anyway to evaluate a list of conditions every time the list is printed.
For ex:
a,b,c,d=10,15,30,56
li=[a%10==0, b<5, c//3==10, d%2==0]
print(li)
b=3
print(li)
The first and second print functions are giving [True, False, True, True]
How can I make the list update its values according the conditions mentioned in it above.
So that the second print function prints [True, True, True, True]
according to the updated value of variable b.