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