Advertisement
Guest User

Untitled

a guest
Sep 26th, 2017
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.18 KB | None | 0 0
  1. def foo(bar):
  2.     if bar == 5:
  3.         for i in range(foo):
  4.             print(i)
  5.     else:
  6.         print("Fail")
  7.  
  8. foo(5)
  9.  
  10. >>> 0
  11. >>> 1
  12. >>> 2
  13. >>> 3
  14. >>> 4
  15.  
  16. foo(10)
  17.  
  18. >>> Fail
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement