Skip to content

3. Пенская Алина Павловна. 613 - #127

Open
alpen9 wants to merge 16 commits into
python-department:mainfrom
alpen9:main3
Open

alpen9 wants to merge 16 commits into
python-department:mainfrom
alpen9:main3

Conversation

@alpen9

@alpen9 alpen9 commented Oct 12, 2026

Copy link
Copy Markdown

No description provided.

@github-actions github-actions Bot added the 613 label Oct 12, 2026
@alpen9 alpen9 changed the title 3. Пенская Алина павловна. 613 3. Пенская Алина Павловна. 613 Oct 12, 2026
Comment thread src/part3/run_admin.py
"""
# TODO: реализуйте функцию
return False
parts = line.split()

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

У меня ощущение, что у некоторых студентов нажатие на Enter платное :)
Ну если разделить на if пустыми строками, то код же станет понятнее, сразу выделяться обработки отдельных команд и проще будет понимать что и где происходит

Comment thread src/part3/run_admin.py
print(f"'{line}' is not a command")
return True
command = parts[0]
if command == "help" and len(parts) == 1:

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

match case был бы проще и понятнее, а так копипаста проверок длины
Пункт S1

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants