I have a list of strings
lst = ["5g", "100", "devices", "0.5", "degree"]
and I want to filter all numbers and get as output
["5g", "devices", "degree"]
If I use isnumeric()
[item.isnumeric() for item in last]
I get
[False, True, False, False, False]
isdigit() gives
[False, True, False, False, False]
and isalpha() returns
[False, False, True, False, True]
Is it possible to get desired output using built-in functions?