Kodewick
Start learning →
Starter←→0 / 100

Room area

#069StarterFunctionsNumbers2 min

Before buying a rug you need the room's area. Write room_area(length, width) to return length × width in square metres.

Examples
room_area(4, 3)→12
room_area(5, 2.5)→12.5
main.py
def room_area(length, width):
    # your code here: return length times width
    return length
Ctrl + Enter runs too
Result

Run tries the examples. When they look right, Submit.