Exerpad
🔥0
0 XP
Lv.1 Beginner
Log In

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:

text
Rectangle: 20
Circle: 28.26

💡 Hints

?Hint 1
🔒Hint 2
🔒Hint 3
python