user = int(input("Enter vechicle speed: ")) if user < 50: print("No fine") elif user in range(52, 55): print("Just a caution") elif user in range(56, 60): print("$200 Fine") elif user in range(60, 99): print("$1,000 Fine") elif user in range(100, 300): print("$2,000 Fine") elif user in range(300, 900): print("Just don't drive you a danger to socity and any higher you will be dead")