Olá! Segue resolução da minha atividade:
temperature = int(input("Enter the current temperature: "))
if temperature >= 25:
print("Warning! Temperature above the permitted limit.")
else:
print("Everything is fine with the temperature.")
ATÉ 50% OFF
TÁ ACABANDO!
0 dias
0 horas
0 min
0 seg
Olá! Segue resolução da minha atividade:
temperature = int(input("Enter the current temperature: "))
if temperature >= 25:
print("Warning! Temperature above the permitted limit.")
else:
print("Everything is fine with the temperature.")
Olá, Danilo, como vai?
O seu código cumpre bem a lógica proposta para verificar a temperatura e apresentar a mensagem adequada. A estrutura está clara e funciona corretamente ao comparar o valor recebido com o limite definido. É uma boa solução para o objetivo do exercício.
Continue compartilhando seus avanços. O fórum está à disposição.