I need assistance with writing the below in Python.
Toll roads have different fees based on the time of day and on weekends. Write a function calc_toll() that has three parameters: the current hour of time (int), whether the time is morning (boolean), and whether the day is a weekend (boolean). The function returns the correct toll fee (float), based on the chart below.
Weekday Tolls
Weekend Tolls
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here