Skip to content

Instantly share code, notes, and snippets.

@benthomasson
Created August 18, 2021 15:05
Show Gist options
  • Select an option

  • Save benthomasson/910798761055af8b5a06d837ff1549ba to your computer and use it in GitHub Desktop.

Select an option

Save benthomasson/910798761055af8b5a06d837ff1549ba to your computer and use it in GitHub Desktop.
def mystery(x):
assert x >= 0
if x <= 0:
return 1
if x == 1:
return 1
return mystery(x-1) + mystery(x-2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment