Advertisement
Guest User

Untitled

a guest
Feb 24th, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. from random import randint
  2.  
  3. def assign_a_value_conditionally():
  4.  
  5. threshold = randint(1,4)
  6.  
  7. if threshold > 3:
  8.  
  9. value = "We made it!"
  10. return value
  11.  
  12. print('before recursion')
  13. assign_a_value_conditionally()
  14. print('after recursion')
  15.  
  16. a = assign_a_value_conditionally()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement