Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Problem 1
- def f(current, end):
- if current > end or current == 10 or current ==15:
- return 0
- elif current == end:
- return 1
- else:
- return f(current+1, end) + f(current+2, end) + f(current+3, end)
- print(f(5,11)*f(11,18))
- #176
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement