Codington
0 of 6 problems solved • 0%

Exercise prompt

Calculate a Queue

A Python expression combines values and operators into one result. Multiplication runs before addition. Parentheses can change which calculation runs first.

Example

print(5 + 2 * 4) # 13 print((5 + 2) * 4) # 28

In the second line Python adds five and two before multiplying. Work from the innermost parentheses outward.

Your task

There are two groups in a queue. Everyone needs the same number of minutes at the desk. Use the three starter variables to calculate wait_minutes for the whole queue.