Untitled

Anonymous
Plain Text
03/18/2023 2:45 AM
195 B
24
Indexable
Never
def caught_speeding(speed, is_birthday):
  extra_speed = 0
  if is_birthday:
    extra_speed = 5
  if speed < 61 + extra_speed:
    return 0
  if speed < 81 + extra_speed:
    return 1
  return 2
Editor is loading...