-
Notifications
You must be signed in to change notification settings - Fork 182
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lesson 2 #1264
base: master
Are you sure you want to change the base?
lesson 2 #1264
Conversation
print(f"Итого: {num_1} {operand} {num_2} = {total}") | ||
return calc() | ||
|
||
calc() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
выполнено
except ValueError: | ||
print('Вы ввели НЕ_число, просьба ввести именно число:') | ||
number = int(input('Введите набор цифр: ')) | ||
print(f'Количество чисел в вашем числе {number} по пропорции (четные, нечетные): {count_func(number)}') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
проверьте стиль кода
except ValueError: | ||
print('Вы ввели буквы, а нужно ввести цифры') | ||
user_numb = int(input('Введите число: ')) | ||
print(f'В обратном порядке число получаются: {rev(user_numb)}') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
отрабатывает неверно
Введите число: 1230
В обратном порядке число получаются: 321
плюс ошибки стиля
return int_char(num + 1, count + 1, count_end + f" {num} - {chr(num)}") | ||
|
||
|
||
print(int_char(33, 1, "")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
выполнено
|
||
riddle_numb= randint(1,10) | ||
|
||
riddle(riddle_numb) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
опять стиль
игнорируете подсказки Пичарма...
No description provided.