-
Notifications
You must be signed in to change notification settings - Fork 73
Add files via upload #119
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
base: master
Are you sure you want to change the base?
Add files via upload #119
Conversation
num_1 = int(input("Введите первое число: ")) | ||
word_2 = input("Введите второе слово: ") | ||
num_2 = int(input("Введите второе число: ")) | ||
print(f"Ваш ввод: {word_1} {num_1} {word_2} {num_2}") |
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.
выполнено
hours = user_seconds // 3600 | ||
minutes = (user_seconds - (hours * 3600)) // 60 | ||
seconds = user_seconds - (hours * 3600) - (minutes * 60) | ||
print(f"Время в формате чч:мм:сс будет - {hours}:{minutes}:{seconds}") |
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.
выполнено
|
||
num = int(input("Введите число 'n' для операции: ")) | ||
num_sum = (num + int(str(num) + str(num)) + int(str(num) + str(num) + str(num))) | ||
print("Сума n + nn + nnn будет: ", num_sum) |
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.
(num + int(str(num) + str(num)) + int(str(num) + str(num) + str(num)))
лишние скобки
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.
Принято.
Перезалить исправленое?
if final_max < current_number: | ||
final_max = current_number | ||
number = number // 10 | ||
print(f"Максимальная цифра во введенном числе: {final_max}") |
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.
выполнено
elif profit < 0: | ||
print(f"Убыток фирмы равен {profit}") | ||
else: | ||
print(f"фирма работает на нуле") |
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.
выполнено
day = day + 1 | ||
print(f"Результат на {day} день тренировок: {a}") | ||
|
||
print(f"На {day} день спортсмен достигнет целевой результат и он составит {a}") |
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.
выполнено
Урок 1 ДЗ Самолюк Владимир