Kodewick
Empieza a aprender →
Inicial←→0 / 100

Área de la habitación

#069Inicialdef f(length, width)2 min

Antes de comprar una alfombra necesitas el área de la habitación. Escribe room_area(length, width) para devolver largo × ancho en metros cuadrados.

Ejemplos
room_area(4, 3)→12
room_area(5, 2.5)→12.5
main.py
def room_area(length, width):
    # tu código aquí: devuelve length por width
    return length
Ctrl + Enter también ejecuta
Resultado

Ejecutar prueba los ejemplos. Cuando salgan bien, Enviar.