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