forked from tdwojak/Python2017
12 lines
303 B
Python
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
|