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

19
Python/OOP2/task9.py Normal file
View File

@ -0,0 +1,19 @@
from dataclasses import dataclass
class Figure:
pass
@dataclass
class Triangle:
sides: tuple[int, int, int]
height: int
def area(self) -> int:
return self.sides[0] * self.height
@dataclass
class Circle:
pass