Skip to content
DeepForgeby svx
All problems
EasyProbabilitypr-098

Little's Law

Problem

Little's law relates the average number of customers in a system to the arrival rate and the average time spent in the system:

L = arrival_rate * avg_time.

Return the product as a float.

Hint

Units are customers per unit time times time.

Test cases

case 1
in: [10,0.5]
expected: 5
case 2
in: [4,2]
expected: 8
case 3
in: [0,5]
expected: 0
Starter codePython
def littles_law(arrival_rate, avg_time):
    # Your code here
    pass

3 test cases · run your code against them in the editor