1
0
forked from tdwojak/Python2017

labs04 z1

This commit is contained in:
s45148 2017-12-03 15:40:52 +01:00
parent b5a3890c93
commit d267afe390
3 changed files with 18 additions and 3 deletions

View File

@ -8,6 +8,3 @@ def is_numeric(InputList):
OutputLits.append(isinstance(t,(int, float))) OutputLits.append(isinstance(t,(int, float)))
#print(isinstance(x,(int, float))) #print(isinstance(x,(int, float)))
return OutputLits return OutputLits
x = is_numeric([1,2.3,'safd',2.2,[1,2]])
print(x)

View File

@ -1,3 +1,5 @@
#!/usr/bin/env python2 #!/usr/bin/env python2
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
class Employee:
def __init__(self, ,):

View File

@ -1,3 +1,19 @@
#!/usr/bin/env python2 #!/usr/bin/env python2
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
def is_numeric(InputList):
OutputLits = []
for i in range(len(InputList)):
t = InputList[i]
OutputLits.append(isinstance(t,(int, float)))
return OutputLits
class Point:
def __init__(self, StartList):
self.StartList = StartList
def retx(self):
return self
x = Point([2])
print(x.retx())