Answers for "how to remove a None values from a query in django"

8

python delete none from list

>>> L = [0, 23, 234, 89, None, 0, 35, 9]
>>> [x for x in L if x is not None]
[0, 23, 234, 89, 0, 35, 9]
Posted by: Guest on September-07-2020

Code answers related to "how to remove a None values from a query in django"

Python Answers by Framework

Browse Popular Code Answers by Language