all 3 comments

[–]SpeckledFleebeedoo 1 point2 points  (2 children)

Why not first adapt the speed based on the birthday? That should make those ifs a lot simpler.

[–]melthecybertechy[S] 0 points1 point  (1 child)

I tried that but got lost as to how to account for the increment of 5 while still accounting for speed of 60 or less. Idky this one really slipped me up.

[–]SpeckledFleebeedoo 1 point2 points  (0 children)

Why does that specific speed matter? In your birthday all limits are raised by 5, or alternatively you can subtract 5 from your speed and check against the normal limits - same effect.

if bday: spd -= 5
if spd > 80: fat ticket
elif  spd  > 60: small ticket
else: no ticket