This is the simple way to comprehensive list as shown below: regions = [i for i in regions if i and (-1 not in i)]. The output is: [[9, 10, 7, 8], [7, 6, 10] ...
DOWNLOAD: https://tinurli.com/2f6688
DOWNLOAD: https://tinurli.com/2f6688
remove-nested-list-python
939c2ea5af
Comments