Skip to content

2. Рустаев Самир Рустамович. 614 - #92

Open
samirhappy wants to merge 4 commits into
python-department:mainfrom
samirhappy:part2
Open

samirhappy wants to merge 4 commits into
python-department:mainfrom
samirhappy:part2

Conversation

@samirhappy

Copy link
Copy Markdown

No description provided.

@github-actions github-actions Bot added the 614 label Oct 2, 2026
Comment thread src/part2/cart.py
"""
# TODO: реализуйте функцию
return (0, 0)
for i in range(len(cart)):

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.

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

Comment thread src/part2/crud.py
return (0, "", Decimal(0), 0)
name, price, quantity = fields
normalized_price = normalize_price(price)
for i in range(len(storage)):

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.

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

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