Skip to main content
Scopes and bodies 0 of 5 activities solved
  1. Scopes and Bodies Not yet read
  2. Scopes and Bodies: quiz Not yet read
  3. Outside Perimeter Not yet solved
  4. Weekend Off Not yet solved
  5. Calling Inside Not yet solved
Next series Docstrings
Scopes and bodies

Outside Perimeter

Sign in to hand in your solution and get feedback.

from bakery import assert_equal def calculate_perimeter(width: int, height: int) -> int: perimeter = width *2 + height * 2 calculate_perimeter(4, 3) assert_equal(perimeter, 14)