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

12 lines
247 B
Python
Raw Normal View History

2017-12-03 13:05:05 +01:00
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
2017-12-16 02:16:15 +01:00
lista = [1,1.0,2,3,4.5]
def is_numeric(n):
for i in n:
if isinstance(i,int):
print("True")
if isinstance(i,float):
print("False")
print(is_numeric(lista))