Simple Question:
list_1 = [ 'asdada', 1, 123131.131, 'blaa adaraerada', 0.000001, 34.12451235265, 'stackoverflow is awesome' ]
I want to create a list_2
such that it only contains the numbers:
list_2 = [ 1, 123131.131, 0.000001, 34.12451235265 ]
Is there simplistic way of doing this, or do I have to resort to checking the variable type of each list item and only output the numerical ones?