I am new to programming. I am trying to fix a bug in python. I came across a situation where when I do something like below, zero is removed automatically out of all the list of numbers.
d = list(filter(None,[0,5,8,9]))
print(d)
# -> [5,8,9]
Can anyone help me in this case.