Write a function named predict_waiting_time that will take duration time as the argument. The function that you write must return

Write a function named predict_waiting_time that will take duration time as the argument. The function that you write must return the prediction of the waiting time based on the slope, the intercept, and the duration time values. After writing the function, call the function twice and pass the duration times 1 minute and 6 minutes, respectively. Store the returned prediction of the waiting times for duration times of 1 minute and 6 minutes in variables named predicted_wait_time_for1mins and predicted_wait_time_for6mins, repectively and print them to the output.

Leave a Reply

Your email address will not be published.