Write a program in python to display the speed of a car and alarm of the speed is higher than 80
Answers
Answered by
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
Computer Science,
3 months ago
Social Sciences,
10 months ago