fork download
  1. def noEmpty(x):
  2. return x != ""
  3. str = '0.4350 0.8798 0.0099 1';
  4. print (list(filter(noEmpty, str.split(' '))));
  5.  
Success #stdin #stdout 0.02s 27704KB
stdin
Standard input is empty
stdout
['0.4350', '0.8798', '0.0099', '1']