Kodewick
Empieza a aprender →
Inicial→0 / 100

Aviso del tiempo

#001Inicialif temp > 302 min

Un móvil muestra un pequeño aviso del tiempo. Hoy temp es 32: por encima de 30 muestra ¡Qué calor, bebe agua!; si no, Hace buen tiempo.

Debería mostrar
¡Qué calor, bebe agua!
main.py
temp = 32

if temp > 30:
    # tu código aquí: muestra ¡Qué calor, bebe agua!
    pass
else:
    print("Hace buen tiempo")
Ctrl + Enter también ejecuta
Resultado

Ejecutar prueba los ejemplos. Cuando salgan bien, Enviar.