forked from tdwojak/Python2017
12 lines
219 B
Python
12 lines
219 B
Python
#!/usr/bin/env python2
|
|
# -*- coding: utf-8 -*-
|
|
|
|
def isNumeric(x):
|
|
for i in range(len(x)):
|
|
if isinstance(x[i], (int , float ))==False:
|
|
return False
|
|
return True
|
|
|
|
print(isNumeric([1,4,4.8,1]))
|
|
|