osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

My pseudocode to Python?


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