Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def n_p(x, y):
- if x > y or x == 14:
- return 0
- if x == y:
- return 1
- if x < y:
- return n_p(x+1, y) + n_p(x+2, y)
- print (n_p(2, 9)*n_p(9, 18))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement