-
Notifications
You must be signed in to change notification settings - Fork 6
/
main.py
60 lines (41 loc) · 972 Bytes
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
class Object:
'''
Class which holds two numbers, but lacks any operatios for them
Attributes
----------
a : int/float
first number
b : int/float
second number
Methods
----------
summer()
sums the two numbers
'''
def __init__(self, a, b):
'''
Init method for Object; defines the two numbers we are implementing operations for
Parameters
----------
a : int/float
first number
b : int/float
second number
Returns
----------
-
'''
self.a = a
self.b = b
def summer(self):
'''
Should return sum of self.a and self.b
'''
raise NotImplementedError('implement me')
def main():
num1 = 5
num2 = 7
obj = Object(num1, num2)
print(f'We have summed numbers {obj.summer()}')
if __name__ == '__main__':
main()