1
0
Fork 0

commited tasks

This commit is contained in:
s45150 2017-12-03 17:16:56 +01:00
parent 4288d56ba2
commit f372aff821
1 changed files with 4 additions and 8 deletions

View File

@ -2,14 +2,10 @@
# -*- 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
if isinstance(x[i], (int , float ))==False:
return False
return True
print(isNumeric([1,4,5.4]))
print(isNumeric([1,4,4.8,4]))