Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
195 B
2
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