Skip to content

Add files via upload#119

Open
vladimir-smile wants to merge 1 commit intoKartavec:masterfrom
vladimir-smile:master
Open

Add files via upload#119
vladimir-smile wants to merge 1 commit intoKartavec:masterfrom
vladimir-smile:master

Conversation

@vladimir-smile
Copy link
Copy Markdown

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

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

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}")
Copy link
Copy Markdown

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)
Copy link
Copy Markdown

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
Copy Markdown
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}")
Copy link
Copy Markdown

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

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}")
Copy link
Copy Markdown

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