Skip to content

13.10.2023 00:28#1

Open
alepopas wants to merge 2 commits into
mainfrom
lab-1
Open

13.10.2023 00:28#1
alepopas wants to merge 2 commits into
mainfrom
lab-1

Conversation

@alepopas

Copy link
Copy Markdown
Owner

No description provided.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Не совсем понятно, откуда вы нашли число 4 и 5?

Корректнее сначала найти индекс пропущенного значения с помощью метода index списка

missing_index = numbers.index(None)

а потом уже прописывать

sum(numbers[:missing_index ]) + sum(numbers[missing_index +1:])

@alepopas alepopas Oct 15, 2023

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

спасибо! почему-то в третьем это учла, а тут не заметила, сейчас исправлю

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

0.7 балла - поправляйте

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Всё верно - 1 балл

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Всё верно - 1 балл

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Всё верно - 1 балл

@vladuxa23 vladuxa23 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

3.7 балла - ошибки в комментариях, поправляйте

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