Question: A function can return multiple results. Technically a function only returns one value, but this value is called a tuple, which has 2 multiple items
A function can return multiple results. Technically a function only returns one value, but this value is called a tuple, which has 2 multiple items in it. A tuple is like a list, except that it is immutable, meaning it can't be changed after it is created. Create a function called get_area_perimeter. It should have 2 parameters; height and width. It should return 2 values, area and perimeter. (4 pts) You can't use 2 return statements, the return must return both values on the same line separated by a comma.
Output:
# Create Function below
if __name__ == "__main__": # You can put any code to test your function indendented under this if. DO NOT REMOVE pass
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
