x = [ "sdf", "sd", None ]print( [ k for k in x if x is not None ] )
Standard input is empty
['sdf', 'sd', None]
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!