Numbers detector
Given a list with the mixed element types, return a new list with only integer and floating point number.
Sample Code:
def seekNum(arr):
# Enter your logic here...
Examples:
Input: [1,2,3.1,'4',['number']]
Output: [1,2,3.1]
Explanation: The new list contains only integers and floating point numbers.
Input: ['1',{id:'2'},'3.1']
Output: []
Explanation: The new list contains only integers and floating point numbers.