1
0
forked from tdwojak/Python2017

commited tasks

This commit is contained in:
s45150 2017-12-03 15:28:07 +01:00
parent dc66b8063e
commit 4288d56ba2

View File

@ -1,3 +1,15 @@
#!/usr/bin/env python2 #!/usr/bin/env python2
# -*- coding: utf-8 -*- # -*- 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]))