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