Question: 51 # IMPLEMENT. 52 # Import math module below 53 no of_desks = no_of_students / / 4 1 54 55 def calculate_minimum_desks (no_of_students) : #

51 # IMPLEMENT. 52 # Import math module below 53 no of_desks = no_of_students / / 4 1 54 55 def calculate_minimum_desks (no_of_students) : # function definition 56 # Don't forget to indent properly; Simply align you code vertically to function name. 57 # Write your docstring and code below this line by replacing the three dots (. . .) 58 def calculate minimum desks (no_of_students) : 59 no of desks = no of students / / 4 60 if no of students % 4 != 0: 61 no of desks += 1 62 return no of desks 63 64 def main( ) : # Main program 65 # Testing test case 1 in Canvas 66 no of students = 23 67 print (calculate_minimum_desks (no_of_students) ) 68 69 # Testing test case 2 in Canvas 70 # Print only a call to your function below like in test case 1 example above 71 no of students = 27 72 print (calculate_minimum_desks (no_of_students) ) #Output : 7 73 74 # Testing test case 3 in Canvas 75 # Print only a call to your function below like in test case 1 example above 76 no of students = 23 77 print (calculate_minimum_desks (no_of_students ) ) #Output: 6 78 79 # REVIEW: 80 if name == " main ": # Standard way of calling main ( ) program. This way you can import this code into a differ 81 # Write your code below this line by replacing . . . 82 83 main()
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
