Skip to content

Conversation

@DoctorChe
Copy link
Owner

No description provided.

@pep8speaks
Copy link

pep8speaks commented May 20, 2019

Hello @DoctorChe! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

Line 27:80: E501 line too long (82 > 79 characters)

Line 33:80: E501 line too long (89 > 79 characters)

Line 15:80: E501 line too long (85 > 79 characters)
Line 31:80: E501 line too long (81 > 79 characters)

Comment last updated at 2019-05-21 07:48:39 UTC



print("\nРасчёт через рекурсию")
calc()

Choose a reason for hiding this comment

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

задание выполнено, отдельное спасибо за рекурсию



print("\nРасчёт через рекурсию")
even_odd(input_number)

Choose a reason for hiding this comment

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

отлично, две реализации

print(f"Обратное число {revers_recursion(number)}")

print("\nРасчёт через рекурсию")
print(f"Обратное число {revers_recursion(number)}")

Choose a reason for hiding this comment

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

супер

print(f"Сумма {n} чисел из ряда 1 -0.5 0.25 -0.125 ... равна {sum_range_n(n)}")

print("\nРасчёт через рекурсию")
print(f"Сумма {n} чисел из ряда 1 -0.5 0.25 -0.125 ... равна {sum_range_n_recursion(n)}")

Choose a reason for hiding this comment

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

аналогично дев реализации



print("\n\nРасчёт через рекурсию")
print_ascii_table()

Choose a reason for hiding this comment

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

спасибо. хорошо что любой перебор можно реализовать и циклом, и рекурсией
но надо помнить о ресурсах


print("\nРасчёт через рекурсию")
rand_number = int(random() * max_number + 1)
guess_number_recursion(rand_number)

Choose a reason for hiding this comment

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

хорошо

else:
print(f"1+2+...+{n} = {sum_range_n}")
print(f"n(n+1)/2 = {sum_n}")
print(f"1+2+...+{n} <> n(n+1)/2")

Choose a reason for hiding this comment

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

отлично

print(f"Цифра {my_digit} встречается {loop(n, my_digit)} раз(а)")

print("\nРасчёт через рекурсию")
print(f"Цифра {my_digit} встречается {recursion(n, my_digit)} раз(а)")

Choose a reason for hiding this comment

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

здесь в принципе можно только циклом ограничиться

print(f"Наибольшее число по сумме цифр {b}")
print(f"Сумма его цифр равна: {sum_digits_b}")
else:
print(f"Суммы цифр введённых чисел равны")

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.

4 participants