Exerpad
Exercise 7 · Chapter: FunctionsRequired+50 XP

Area Calculator

Write two functions:

  1. rectangle_area(w, h) — returns width times height
  2. circle_area(r) — returns 3.14 times r squared

Then print the results:

Rectangle: 20
Circle: 28.26
Need a hint?
3 available · costs 5 XP each
python

Output
Run your code to see the output here.