Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # recursive_limitation.py
- from time import time as tc
- def recursive(limit, n=0):
- if n >= limit:
- return n
- return recursive(limit, n + 1)
- t = recursive(500)
- print t
- c = tc()+3
- while tc() < c: 0
- t = recursive(998)
- print t
- c = tc()+3
- while tc() < c: 0
- t = recursive(999) # maximum
- print t
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement