Created
June 29, 2021 04:51
-
-
Save thecodemedia/65889b72fdf665284d0ef551365400ff to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Делаем отдельную функцию с напоминанием | |
def remind(): | |
# Спрашиваем текст напоминания, который нужно потом показать пользователю | |
print("О чём вам напомнить?") | |
# Ждём ответа пользователя и результат помещаем в строковую переменную text | |
text = str(input()) | |
# Спрашиваем про время | |
print("Через сколько минут?") | |
# Тут будем хранить время, через которое нужно показать напоминание | |
local_time = float(input()) | |
# Переводим минуты в секунды | |
local_time = local_time * 60 | |
# Ждём нужное количество секунд, программа в это время ничего не делает | |
time.sleep(local_time) | |
# Показываем текст напоминания | |
print(text) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment