Skip to content

Comments

Васильев Михаил Владимирович, 25.Б42-мм#18

Open
MichaelVasiliev24 wants to merge 11 commits intopython-course-matmex:mainfrom
MichaelVasiliev24:main
Open

Васильев Михаил Владимирович, 25.Б42-мм#18
MichaelVasiliev24 wants to merge 11 commits intopython-course-matmex:mainfrom
MichaelVasiliev24:main

Conversation

@MichaelVasiliev24
Copy link

@MichaelVasiliev24 MichaelVasiliev24 commented Nov 7, 2025

Added missing files (gitignore, requiremetns, license), changed README and corrected CI configuration files, fixed bugs in checksum, expanded tests for it.

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: 6/10
Бинарный поиск: 0/5
Оформление: 10/10

Copy link

Choose a reason for hiding this comment

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

В задании требовалось также реализовать консольную утилиту.

Comment on lines +5 to +11
raise Exception(
"Количество значащих символов, то есть не считая пробелов и тире, в ISBN номере должно равняться 10."
)
if not digits_str[:9].isdigit() or digits_str[9] not in "0123456789Xx":
raise Exception(
"ISBN может содержать только арабские цифры, а также римскую цифру X для контрольной цифры."
)
Copy link

Choose a reason for hiding this comment

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

Использовать Exception -- плохая практика, следовало указать конкретный тип ошибки, например ValueError.

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