fork download
  1. tokens = ['hello', 'world', '12', '1-3', '23']
  2. relevant_tokens = [token for token in tokens if not any(c.isdigit() for c in token)]
  3. print(relevant_tokens)
  4.  
Success #stdin #stdout 0s 23352KB
stdin
Standard input is empty
stdout
['hello', 'world']