Computer Science, asked by nouranamr420, 3 months ago

Write a program in python to display the speed of a car and alarm of the speed is higher than 80

Answers

Answered by vijaysyadav601
1

Answer:

def speed_check(speed):

if speed <= 70:

return "OK"

else:

speed1 = (speed-70)//5

if speed1 <= 12:

return print(f"Point: {speed1}")

else:

return print("License suspended")

enter = speed_check(int(input("Enter speed: ")))

print(enter)

please mark me as the brainliest

Similar questions