fork download
  1. our_list = ["2121","eew3232", "32d-3", "(32"]
  2. new_lst = [item for item in our_list if item.isdigit()]
  3. print(new_lst)
Success #stdin #stdout 0.02s 9080KB
stdin
Standard input is empty
stdout
['2121']