fork download
  1. def not_empty(s):
  2. return s and s.strip()
  3. print(list(filter(not_empty,[' ','A',' ','B'])))
  4. # your code goes here
  5. # your code goes here
  6. # your code goes here
Success #stdin #stdout 0.07s 14188KB
stdin
Standard input is empty
stdout
['A', 'B']