python

Implement the following function def FastestCar

Implement the following function def FastestCar

Implement the following function:def FastestCar(t, d1, d2, d3):The function accepts four positive integers ‘t’, ‘d1’, ‘d2’ and ‘d3’ as its argument. 3 cars cover distances ‘d1’, ‘d2’ and ‘d3’ in time ‘t’. Implement the function to find the fastest car…