Question: main.py driving _ speed = int ( input ( ) ) driving _ limit = int ( input ( ) ) total = driving _

main.py
driving_speed = int(input())
driving_limit = int (input ())
total = driving_limit % driving_speed
if (total 10) and driving_speed > driving_limit:
print ('50')
elif ((total >=6) and total =20) and driving_speed driving_limit:
print('75')
elif((total >=21) and (total =40)) and driving_speed driving_limit:
print ('150')
elif(total >=41) and driving_speed driving_limit:
print ('300')
else:
print ('0')
I having trouble with my logic. It is not printing out 300 or 50.
Python
 main.py driving_speed = int(input()) driving_limit = int (input ()) total =

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!