initial commit

This commit is contained in:
2023-07-16 13:23:25 +00:00
commit c3fa5367c3
85 changed files with 4921 additions and 0 deletions

14
Python/OOP2/task2.py Normal file
View File

@ -0,0 +1,14 @@
from dataclasses import dataclass
from typing import Self
@dataclass
class Foo:
a: int
b: int
def sum(self: Self) -> int:
return self.a + self.b
def greater(self: Self) -> int:
return max(self.a, self.b)