Conversation
irisqul
reviewed
Nov 30, 2025
| def print_test_case_info(self): | ||
| super().print_test_case_info() | ||
| print(f"\nПредусловие: {self.precondition}" | ||
| f"\nОкружение: {self.environment}") |
There was a problem hiding this comment.
Отлично: нет дублирования полей которые уже описаны на уровне класса
| else: | ||
| points = 101 - place | ||
|
|
||
| return points |
There was a problem hiding this comment.
отлично: нет дублирования ретёрнов, корректная работа с условиями
task_3.py
Outdated
| class TotalPoints(PointsForPlace, PointsForMeters): | ||
|
|
||
| def get_total_points(self, place, meters): | ||
| PointsForPlace = TotalPoints.get_points_for_place(place) |
There was a problem hiding this comment.
get_points_for_place и .get_points_for_meters теперь методы TotalPoints после наследования, обращение к ним ведется через self
| return f'Хоккейных поражений: {self.losses}' | ||
|
|
||
| def total_points(self): | ||
| return f'Общее количество очков: {2 * self.victories + self.draws}' |
There was a problem hiding this comment.
отлично: корректная работа с экземплярами класса, все расчёты верные
| cls.hourly_payment = hourly_payment | ||
|
|
||
| def salary(self): | ||
| return self.hours * self.hourly_payment |
There was a problem hiding this comment.
отлично: корректная работа с классом через @classmethod
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.