Skip to content

Conversation

vladimir-smile
Copy link

Урок 1 ДЗ Самолюк Владимир

num_1 = int(input("Введите первое число: "))
word_2 = input("Введите второе слово: ")
num_2 = int(input("Введите второе число: "))
print(f"Ваш ввод: {word_1} {num_1} {word_2} {num_2}")

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}")

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)

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)))
лишние скобки

Copy link
Author

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}")

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"фирма работает на нуле")

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}")

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.

2 participants