Open
Conversation
Dzhoker1
reviewed
Apr 11, 2020
| elif symbol == '*': | ||
| print(a * b) | ||
| else: | ||
| print('вы успешно покинули программу') |
There was a problem hiding this comment.
Почему верни в прямоугольнике? У вас основной код и вы печатаете в консоль. Значит параллелограмм для вывода.
| 3. Сформировать из введенного числа обратное по порядку входящих в него цифр и вывести на экран. | ||
| Например, если введено число 3486, надо вывести 6843. | ||
| """ | ||
| def rec(number): |
| 4. Найти сумму n элементов следующего ряда чисел: 1, -0.5, 0.25, -0.125,… Количество элементов (n) вводится с клавиатуры. | ||
|
|
||
| """ | ||
| def df(n): |
There was a problem hiding this comment.
А тут путаница. В блок-схеме только основной алгоритм, а тут функция и её вызов в main.
| чем то, что загадано. Если за 10 попыток число не отгадано, вывести правильный ответ. | ||
| """ | ||
| import random | ||
| num = random.randint(1,100) |
There was a problem hiding this comment.
Так 1 или 0? Верить коду или блок-схеме?
| 7. Напишите программу, доказывающую или проверяющую, | ||
| что для множества натуральных чисел выполняется равенство: 1+2+...+n = n(n+1)/2, где n — любое натуральное число. | ||
| """ | ||
| def f(n): |
There was a problem hiding this comment.
И снова читаешь блок-схему, представляешь что и как и всё хорошо.
А потом открываешь код, а тут функция в коробке.
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.
No description provided.