2017-12-03 13:05:05 +01:00
|
|
|
#!/usr/bin/env python2
|
|
|
|
# -*- coding: utf-8 -*-
|
2017-12-03 15:18:22 +01:00
|
|
|
#e
|
|
|
|
def is_numeric(InputList):
|
|
|
|
OutputLits = []
|
|
|
|
for i in range(len(InputList)):
|
|
|
|
t = InputList[i]
|
|
|
|
OutputLits.append(isinstance(t,(int, float)))
|
|
|
|
#print(isinstance(x,(int, float)))
|
|
|
|
return OutputLits
|
2017-12-16 00:19:41 +01:00
|
|
|
|
|
|
|
print(is_numeric([-1,2.4,6]))
|