speed = int(input("Enter the speed in km/h:")) if speed <= 50: print("no fine") elif 51 <= speed <= 55: print("just a caution") elif 56 <= speed <= 60: print("Fine is $200") else: print("Fine is $1000")