Skip to content

HW2_Laskina#16

Open
NataliaLaskina wants to merge 16 commits intoPython-BI-2025-26:mainfrom
NataliaLaskina:HW2_Laskina
Open

HW2_Laskina#16
NataliaLaskina wants to merge 16 commits intoPython-BI-2025-26:mainfrom
NataliaLaskina:HW2_Laskina

Conversation

@NataliaLaskina
Copy link

Team work on Calculator program on Python course of Bioinformatics Institute

@NataliaLaskina NataliaLaskina changed the title HW_2_Calculator HW_2_Laskina Sep 22, 2025
@NataliaLaskina NataliaLaskina changed the title HW_2_Laskina HW2_Laskina Sep 22, 2025
Copy link

@eksytnik eksytnik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Отличная работа! Красивый код, есть мелкие вопросы с отступами - обращайте на них внимание на будущее, это правда сильно помогает читаемости.

Сделаны отличные проверки разных вещей, подумали об основных пользовательских кейсах, прям огонь, прямо вот доп балл за красоту.

Сообщения коммитов стоит начинать с большой буквы, в остальном они написаны хорошо, но это правило пара человек не учла.

Баллы: 10/10 (README) + 10/10 (ветки) + 79/80 (код и коммиты) + 11 доп. =
= 100/100 + 10 доп.

(тимлид, не забудь показать ревью всей команде)

Comment on lines +3 to +4
if y == 0:
raise ZeroDivisionError("Division by zero is not allowed")

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Огонь, что сделана ошибка - но тогда пусть бы уже само кидало деление на ноль?

Comment on lines +19 to +20
return int(token)
def main():

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
return int(token)
def main():
return int(token)
def main():

Не хватает отступов в паре мест. Это очень помогает читаемости, честное слово.

raise ZeroDivisionError("Division by zero is not allowed")
return x / y

def add(x: float, y: float) -> float:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

x, y мне нравятся больше, чем a, b, но в целом однобуквенные переменные стоит держать только в счетчиках. num1, num2 было бы неплохим решением.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants