Question: In the Tasks section write Python functions for the given problems. You can obtain maximum 5 points for each function. The marking scheme is as

In the Tasks section write Python functions for the given problems. You can obtain maximum 5 points for each function. The marking scheme is as follore . for a complete ettor free function implementation with doctring at least 2 test run - full points (5) for a complete error free function implementation with docstring but 1 of mio test run - (45 and 4. respectively missing docstring deduct 1 point function runs but not producing expected result deduct 1 point function does not run - maximum 2 points . Foyection Complete these problems and submit the whole notebook 1. The area of a triangle is calculated using the following equation area = (base x height) Write a Python function to calculate the area of triagle when the base and height values are provided through formal parameters 2. Write a function to calculate the perimeter of a triangle. For this implementation the friction asks the user to enter the sides of a triangle and calculates is perimeter. Note the perimeter of trainge is the summation of all three sides (so, if a, b and are the lengths of each side of a traingle then the perimeter is + b + ) 2.1f the cobedinates of a point is given (x, y) in 20, the distance from the originis dv*+yWrite a function to calculate the distance of a point from the origin, you can use parameter or user input to implement this function
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
