From d267afe390ac3862677c9bbf46a2829a8f31db3b Mon Sep 17 00:00:00 2001 From: s45148 Date: Sun, 3 Dec 2017 15:40:52 +0100 Subject: [PATCH] labs04 z1 --- labs04/task01.py | 3 --- labs04/task02.py | 2 ++ labs04/task03.py | 16 ++++++++++++++++ 3 files changed, 18 insertions(+), 3 deletions(-) diff --git a/labs04/task01.py b/labs04/task01.py index 2144193..121d5a8 100644 --- a/labs04/task01.py +++ b/labs04/task01.py @@ -8,6 +8,3 @@ def is_numeric(InputList): OutputLits.append(isinstance(t,(int, float))) #print(isinstance(x,(int, float))) return OutputLits - -x = is_numeric([1,2.3,'safd',2.2,[1,2]]) -print(x) \ No newline at end of file diff --git a/labs04/task02.py b/labs04/task02.py index 88741a4..4e5688f 100644 --- a/labs04/task02.py +++ b/labs04/task02.py @@ -1,3 +1,5 @@ #!/usr/bin/env python2 # -*- coding: utf-8 -*- +class Employee: + def __init__(self, ,): \ No newline at end of file diff --git a/labs04/task03.py b/labs04/task03.py index 88741a4..31c9d9d 100644 --- a/labs04/task03.py +++ b/labs04/task03.py @@ -1,3 +1,19 @@ #!/usr/bin/env python2 # -*- 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()) \ No newline at end of file