forked from tdwojak/Python2017
done
This commit is contained in:
parent
34e2173b36
commit
12e1065bd9
@ -1,3 +1,12 @@
|
|||||||
#!/usr/bin/env python2
|
#!/usr/bin/env python2
|
||||||
# -*- coding: utf-8 -*-
|
# -*- 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))
|
Loading…
Reference in New Issue
Block a user