I have a list below Prob and I when I try to remove 0 or remove 0.0 it sometimes doesn't remove from the list or there is 'another version' of 0 still in the list. How can I make sure that all 'flavors' of zero are removed from the list since it is impossible to list out all possible decimal increments for zero?
x = [0.0,
0.0,
0,
0.0009765625,
0.0003255208333333333,
0.0021158854166666665,
0.005045572916666667,
0.013020833333333334,
0.019856770833333332,
0.0107421875,
0.004557291666666667,
0.000]
if 0 in probability_perpoint:
probability_perpoint.remove(0)
if 0.0 in probability_perpoint:
probability_perpoint.remove(0.0)
`print(x)` # still prints 0's!