1
0
forked from tdwojak/Python2017
Python2017/labs04/task01.py
2018-01-19 22:11:27 +01:00

12 lines
303 B
Python

#!/usr/bin/env python2
# -*- coding: utf-8 -*-
def is_numeric(x):
if all(isinstance(i, (int, float)) for i in x):
print 'All elements in the list are integers or floats'
return True
else:
print 'NOT all elements in the list are integers or floats'
return False