My pseudocode to Python?

Alan Bawden alan at csail.mit.edu
Mon Aug 19 23:27:48 EDT 2019


ram at zedat.fu-berlin.de (Stefan Ram) writes:
> for i in range( len( list )- 1, 0, -1 ):
>     if list[ i ]is None: del list[ i ]

list = [x for x in list if x is not None]

-- 
Alan Bawden



More information about the Python-list mailing list