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

 

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

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


rectangle_perimeter(10, 20) → 60
rectangle_perimeter(5, 5) → 20
rectangle_perimeter(30, 15) → 90

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

def rectangle_perimeter(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