I got list of integers and keywords
and i'm trying to remove only zeros
from list with for loop - continue, but keyword False
removes too, and how to prevent removing False
? ? ?
a = [1,2,0,1,0,1,None,0,False]
for x in a:
if x ==0:
continue