1
0
forked from tdwojak/Python2017
Python2017/labs04/task01.py

12 lines
219 B
Python
Raw Normal View History

2017-12-03 13:05:05 +01:00
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
2017-12-03 15:28:07 +01:00
def isNumeric(x):
for i in range(len(x)):
2017-12-03 17:16:56 +01:00
if isinstance(x[i], (int , float ))==False:
return False
return True
2017-12-03 15:28:07 +01:00
2017-12-03 17:16:56 +01:00
print(isNumeric([1,4,4.8,4]))
2017-12-03 15:28:07 +01:00