speed = int(input("Enter Vehicle Speed:")) fine = 0 if speed > 50 : fine = fine + 1 if speed > 55 : fine = fine + 1 if speed > 60 : fine = fine + 1 if fine == 1 : print("Warning don't speed again") if fine == 2 : print("200$ fine") if fine == 3: print ("$1000 fine") elif fine == 0: print("no fine")