Advertisement
ForestFox

Untitled

Apr 12th, 2021
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. #Problem 1
  2. def f(current, end):
  3. if current > end or current == 10 or current ==15:
  4. return 0
  5. elif current == end:
  6. return 1
  7. else:
  8. return f(current+1, end) + f(current+2, end) + f(current+3, end)
  9. print(f(5,11)*f(11,18))
  10. #176
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement