Question: Given the following function definition, select all valid calls to this function def print_rectangle_area(width: float, height: float): ''' calculates and prints the area of a
Given the following function definition, select all valid calls to this function
def print_rectangle_area(width: float, height: float): ''' calculates and prints the area of a rectangle width by height >>> print_rectangle_area(2.5, 4) 10.0 ''' area = width * height print(area)
Options:
|
| A. print_rectangle_area(2.5 + 1.2, 3.7) |
|
| B. print_rectangle_area(7.8, 3.2) |
|
| C. x = 4.5 y = 3.2 print_rectangle_area(x:int,y:int) |
|
| D. x = 4.5 y = 3.2 def print_rectangle_area(x, y) |
|
| E. x = 4.5 y = 3.2 print_rectangle_area(x, y) |
|
| F. print_rectangle_area(5, 6) |
|
| G. print_rectangle_area(5.6) |
|
| H. x = 4.5 print_rectangle_area(x, 7) |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
