Open
Conversation
Dzhoker1
reviewed
Dec 10, 2019
| # должна сообщать пользователю о невозможности деления на ноль, если он ввел его в | ||
| # качестве делителя. | ||
|
|
||
| while True: |
|
|
||
|
|
||
| def chet_ne_chet(x): | ||
| global chet |
There was a problem hiding this comment.
По блок-схеме видно, что автор активно думал о реализации на Python, когда рисовал. Даже глобальные переменные нарисовал.
Хорошим тоном считается передавать значение как аргумент функции, а не объявлять переменную глобальной.
| # Сформировать из введенного числа обратное по порядку входящих в него цифр | ||
| # и вывести на экран. Например, если введено число 3486, надо вывести 6843. | ||
|
|
||
| def Reverse(x): |
There was a problem hiding this comment.
Авторский стиль в каждой работе. Что ж, принимается :-)))
Только используйте snake_case для имён, как рекомендуют авторы языка.
| r = r / 2 | ||
| if r % 2 != 0: | ||
| r = r * (-1) | ||
| return(element(r,k-1)) |
There was a problem hiding this comment.
А судя по блок-схеме перед return нужен else.
Говорил о подобных недочётах во время разбора.
| size_col = 6 | ||
| start_ = 32 | ||
| end_ = 127 | ||
| for i in range(start_,end_+1): |
There was a problem hiding this comment.
+1 к работам, которые студенты сдают даже не запустив.
Да, на уроке было и про это. Нет элементов с 122 по 127.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Выполнил