I have a given list, with 49 variables each with a value between 1-5. I want to change the value of all variable which is equal to 5 to zero. Here is what I’ve tried:
For element in listb:
If element == 5:
element = 0
But it doesn’t have any affect, what is the problem? Thanks Vendel