id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

tj@tjleone.com > rectangle_area
prev  |  next  |  chance

Write a Python function rectangle_area that takes two parameters width and height corresponding to the lengths of the sides of a rectangle and returns the area of the rectangle in square inches.


rectangle_area(10, 20) → 200
rectangle_area(5, 5) → 25
rectangle_area(30, 15) → 450

...Save, Compile, Run (ctrl-enter)

def rectangle_area(width,height):

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Python Help

Difficulty: 110 Post-solution available

Copyright Nick Parlante 2017 - privacy