Skip to content

Sprint_1#1

Open
Based96 wants to merge 5 commits intomainfrom
develop
Open

Sprint_1#1
Based96 wants to merge 5 commits intomainfrom
develop

Conversation

@Based96
Copy link
Owner

@Based96 Based96 commented Mar 3, 2026

Сдача основных заданий по первому спринту

self.name = name
self.deadline = True

def work_hard(self, deadline=True):
Copy link

Choose a reason for hiding this comment

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

Можно лучше: тут присутствует дублирование назначения True для deadline

new_tasks = ['task_001', 'task_011', 'task_007', 'task_015', 'task_005']
completed_tasks = ['task_002', 'task_012', 'task_006']

completed_tasks.append(new_tasks.pop(new_tasks.index('task_005')))
Copy link

Choose a reason for hiding this comment

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

Отлично: получилось сделать цепочку команд и решить несколько задач одной строкой

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