Advertisement
Guest User

Untitled

a guest
Feb 17th, 2020
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. def printlen(x):
  2. print(len(x))
  3.  
  4. def argslist(x):
  5. return list(x.args)
  6.  
  7. def add(value_error, arg):
  8. raise Exception(*value_error, *arg)
  9.  
  10. def fibonacci(a, b, x):
  11. try:
  12. assert b<x
  13. printlen(b)
  14. try:
  15. add(a,b)
  16. except Exception as e:
  17. fibonacci(argslist(e), a, x)
  18. except AssertionError as e:
  19. print(e)
  20.  
  21. threshold = 1000
  22. fibonacci([[]],[[]],[[]]*threshold)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement