Published
- 1 min read
remove all 0 from list python
The solution for this is noted below
remove all 0 from list python
Solution
X = [i for i in X if i != 0]
Try other methods by searching on the site. That is if this doesn’t work
Published
- 1 min read
The solution for this is noted below
X = [i for i in X if i != 0]
Try other methods by searching on the site. That is if this doesn’t work