Question: please use Python for the following question: 1. Write a function called 'area' that accepts 2 required parameters and 1 optional parameters. Assume all are
1. Write a function called 'area' that accepts 2 required parameters and 1 optional parameters. Assume all are numeric. If only 2 parameters are provided the function calculates the area of a rectangle and if all 3 are provided it will return the surface area of the cuboid with those dimensions. (2 points)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
