Exercise 7 · Chapter: FunctionsRequired+50 XP
Area Calculator
Write two functions:
rectangle_area(w, h)— returns width times heightcircle_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.