1
0
forked from tdwojak/Python2017

Task01 - completed

This commit is contained in:
s45152 2017-12-03 15:31:16 +01:00
parent f3a9ad0cb3
commit ce045b8d59

View File

@ -1,3 +1,12 @@
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
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))