Skip to content

[TASK] Quiz #6 (https://github.com/SENATOROVAI/intro-cs/issues/6)#521

Closed
dshilin wants to merge 4 commits intoSENATOROVAI:mainfrom
dshilin:main
Closed

[TASK] Quiz #6 (https://github.com/SENATOROVAI/intro-cs/issues/6)#521
dshilin wants to merge 4 commits intoSENATOROVAI:mainfrom
dshilin:main

Conversation

@dshilin
Copy link
Copy Markdown
Member

@dshilin dshilin commented Jan 20, 2026

Describe your change:

ПИШЕМ ЗДЕСЬ ЧТО СДЕЛАЛИ, И ВМЕСТО 'ISSUE-NUMBER' вставляем номер
Closes https://github.com/SENATOROVAI/intro-cs/issues/6
Fixes #6

  • Add an algorithm?
  • Fix a bug or typo in an existing algorithm?
  • Add or change doctests? -- Note: Please avoid changing both code and tests in a single pull request.
  • Documentation change?

Checklist:

  • I have read CONTRIBUTING.md.
  • This pull request is all my own work -- I have not plagiarized.
  • I know that pull requests will not be merged if they fail the automated tests.
  • This PR only changes one algorithm file. To ease review, please open separate PRs for separate algorithms.
  • All new Python files are placed inside an existing directory.
  • All filenames are in all lowercase characters with no spaces or dashes.
  • All functions and variable names follow Python naming conventions.
  • All function parameters and return values are annotated with Python type hints.
  • All functions have doctests that pass the automated testing.
  • All new algorithms include at least one URL that points to Wikipedia or another similar explanation.
  • If this pull request resolves one or more open issues then the description above includes the issue number(s) with a closing keyword: "Fixes #ISSUE-NUMBER".

@ruslansenatorov ruslansenatorov requested review from a team and Dockstage and removed request for a team January 21, 2026 08:25
@stokato
Copy link
Copy Markdown
Member

stokato commented Jan 23, 2026

Describe your change:

ПИШЕМ ЗДЕСЬ ЧТО СДЕЛАЛИ, И ВМЕСТО 'ISSUE-NUMBER' вставляем номер Closes SENATOROVAI/intro-cs#6 Fixes #6

  • Add an algorithm?
  • Fix a bug or typo in an existing algorithm?
  • Add or change doctests? -- Note: Please avoid changing both code and tests in a single pull request.
  • Documentation change?

Checklist:

  • I have read CONTRIBUTING.md.
  • This pull request is all my own work -- I have not plagiarized.
  • I know that pull requests will not be merged if they fail the automated tests.
  • This PR only changes one algorithm file. To ease review, please open separate PRs for separate algorithms.
  • All new Python files are placed inside an existing directory.
  • All filenames are in all lowercase characters with no spaces or dashes.
  • All functions and variable names follow Python naming conventions.
  • All function parameters and return values are annotated with Python type hints.
  • All functions have doctests that pass the automated testing.
  • All new algorithms include at least one URL that points to Wikipedia or another similar explanation.
  • If this pull request resolves one or more open issues then the description above includes the issue number(s) with a closing keyword: "Fixes #ISSUE-NUMBER".

В описании по инструкции нужна только эта строка
Closes https://github.com/SENATOROVAI/intro-cs/issues/6

Comment thread quiz1.py
# pylint
# 21) Что такое описание модуля? Оно должно отражать информацию о том что находится в модуле?
# описание информации в файле
# 21.1) С какой git команды начинается утро программиста?
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.

С какой команды?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

fetch origin

Comment thread quiz1.py
# 32) Как скачать форкнутый репозиторий на локальный компьютер?
# git clone
# 33) С какой вероятностью ваши ошибки были уже решены? и кто их решил?
# 99%
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.

Кто решил?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Сенаторов Руслан Олегович

Comment thread quiz1.py
# 34) Как создать файл в vs code?
# нажать на листик с плюсом
# 35) Файл лога нужно заполнять в конце каждого урока?
# log.ipynb
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.

Так его нужно заполнять в конце каждого урока?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

да

Comment thread quiz1.py
# 4.3) Может ли переменная состоять из одной буквы например андерскор "_" ?
# да
# 4.4) Зачем и где мы используем андерскор _
# для обычных переменных, до и после имени
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.

Зачем мы используем их?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

в dunder методах,
для читаемости чисел,
чтобы уменьшить вероятность конфликтов имён в наследовании

Comment thread quiz2.py
# 79
# 4. Какие способы переноса строк показаны в видео:
#
# 4.4 Использование круглых скобок для продолжения строки
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.

Твой ответ скобки и конкатенация строк?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

перенос комментариев - с помощью #
перенос кода - взять в скобки ( )
длинную переменную разбить на две переменные, затем “склеить" их

Comment thread quiz2.py
Copy link
Copy Markdown
Member Author

@dshilin dshilin left a comment

Choose a reason for hiding this comment

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

добавил информацию в замечаниях

Comment thread quiz2.py
Comment thread quiz2.py
# 79
# 4. Какие способы переноса строк показаны в видео:
#
# 4.4 Использование круглых скобок для продолжения строки
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

перенос комментариев - с помощью #
перенос кода - взять в скобки ( )
длинную переменную разбить на две переменные, затем “склеить" их

Comment thread quiz1.py
# pylint
# 21) Что такое описание модуля? Оно должно отражать информацию о том что находится в модуле?
# описание информации в файле
# 21.1) С какой git команды начинается утро программиста?
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

fetch origin

Comment thread quiz1.py
# 32) Как скачать форкнутый репозиторий на локальный компьютер?
# git clone
# 33) С какой вероятностью ваши ошибки были уже решены? и кто их решил?
# 99%
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Сенаторов Руслан Олегович

Comment thread quiz1.py
# 34) Как создать файл в vs code?
# нажать на листик с плюсом
# 35) Файл лога нужно заполнять в конце каждого урока?
# log.ipynb
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

да

Comment thread quiz1.py
# 4.3) Может ли переменная состоять из одной буквы например андерскор "_" ?
# да
# 4.4) Зачем и где мы используем андерскор _
# для обычных переменных, до и после имени
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

в dunder методах,
для читаемости чисел,
чтобы уменьшить вероятность конфликтов имён в наследовании

Copy link
Copy Markdown
Member

@stokato stokato left a comment

Choose a reason for hiding this comment

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

review done

@stokato stokato closed this Jan 23, 2026
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.

3 participants