# Практикум «Python Essential» класы 11 задача

**URL:** <https://forum.itvdn.com/t/python-essential-11/4184>\
**Category:** Python\
**Created:** [08.03.2023 13:43:50 UTC](https://forum.itvdn.com/t/python-essential-11/4184 "2023-03-08T13:43:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Maks\_Mitkin](https://forum.itvdn.com/user_avatar/forum.itvdn.com/maks_mitkin/32/607_2.png) [@Maks\_Mitkin](https://forum.itvdn.com/u/Maks_Mitkin)\
**Post date:** [08.03.2023 13:43:50 UTC](https://forum.itvdn.com/t/python-essential-11/4184/1 "2023-03-08T13:43:50Z")

</div>

Всем привет, я тут новичек, не пойму почему не принимает тренажер, в PyCharm все отрабатывает норм  
class Rectangle:  
def **init** (self, side\_a=0, side\_b=0):  
self.side\_a = side\_a  
self.side\_b = side\_b

```
def __repr__ (self):
    return "Rectangle({}, {})".format(self.side_a, self.side_b)

def __str__ (self):
    return "Rectangle({}, {})".format(self.side_a, self.side_b)

def __add__ (self, other):
    return "Rectangle({}, {})".format(self.side_a + other.side_a, self.side_b + other.side_b)

def __sub__ (self, other):
    return "Rectangle({}, {})".format(self.side_a - other.side_a, self.side_b - other.side_b)

def __eq__ (self, other):
    return "Rectangle({}, {})".format(self.side_a == other.side_a, self.side_b == other.side_b)

```
