Skip to content

Comments

Караманов Карим Ильнурович 25б42#10

Open
karikprog wants to merge 6 commits intopython-course-matmex:mainfrom
karikprog:main
Open

Караманов Карим Ильнурович 25б42#10
karikprog wants to merge 6 commits intopython-course-matmex:mainfrom
karikprog:main

Conversation

@karikprog
Copy link

No description provided.

@karikprog karikprog marked this pull request as draft November 7, 2025 14:24
@karikprog karikprog marked this pull request as ready for review November 7, 2025 14:39
Copy link

@Godrik0 Godrik0 left a comment

Choose a reason for hiding this comment

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

ISBN10: 10/10
Бинарный поиск: 5/5
Оформление: 8/10 (нет лицензии, описания PR)

Comment on lines +4 to +5
if len(digits) != 10:
return False
Copy link

Choose a reason for hiding this comment

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

Рекомендация: при неверной длине строки лучше выбрасывать исключение, чтобы различать некорректный формат входных данных и просто невалидную контрольную сумму.
Тогда в вызывающем коде нужно будет добавить блок try-except.

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.

2 participants