I need to get all values that are numbers from:
lst = [7, 18, 3, 'a', True, (2,3)]
So I need to get 7,8 and 3. How can I get that?
I tried using function isnumeric
and isdigit
.
It returns error ->
AttributeError: 'int' object has no attribute 'isnumeric'