# Solicita a temperatura ao usuário e converte para número decimal
temperatura = float(input("Digite a temperatura atual da cidade em °C: "))

# Verifica a faixa de temperatura e exibe a mensagem correspondente
if temperatura < 15:
    print("Está frio, hora do casaco!")
elif 15 <= temperatura <= 25:
    print("O tempo está agradável.")
else:  # Acima de 25°C
    print("Está calor, use filtro solar!")

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: