Skip to content

2. Рудаков Андрей Вячеславович. 614 - #77

Open
rudikkkk wants to merge 3 commits into
python-department:mainfrom
rudikkkk:2
Open

rudikkkk wants to merge 3 commits into
python-department:mainfrom
rudikkkk:2

Conversation

@rudikkkk

@rudikkkk rudikkkk commented Oct 1, 2026

Copy link
Copy Markdown

No description provided.

@github-actions github-actions Bot added the 614 label Oct 1, 2026

@EvgrafovMichail EvgrafovMichail left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Подозрение в списывании. Оценка -5. Вы сможете оспорить ее на семинаре

Comment thread src/part2/cart.py
updated_line = (product_id, line[LINE_QUANTITY_INDEX] + quantity)
cart.append(updated_line)
return updated_line
else:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Нарушение критерия T1. Минус 0.25 балла

Comment thread src/part2/cart.py
return None

product = read_product(storage, product_id)
if not product:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Все же с None лучше сравнивать так:

Suggested change
if not product:
if product is None:

Comment thread src/part2/cart.py

product = read_product(storage, product_id)
if not product:
print("read_product")

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Похоже, вы забыли удалить отладочный print.
Нарушение критерия M4. Минус 0.5 балла

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants