This commit is contained in:
Leo
2026-07-09 09:52:11 +05:00
parent 7f6c8095e3
commit 068497e9f0
2 changed files with 9 additions and 9 deletions
+6 -6
View File
@@ -1,10 +1,10 @@
# weather_utils.py
def get_weather_comment(temperature):
"""Возвращает текстовый комментарий и эмодзи в зависимости от температуры"""
if temperature >= 25:
return "Жара!"
return "Жара! ☀️"
elif temperature <= 0:
return "Дубак"
return "Дубак! ❄️"
else:
return "Норма"
return "Нормальная погода ☁️"