Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from random import randint
- def assign_a_value_conditionally():
- threshold = randint(1,4)
- if threshold > 3:
- value = "We made it!"
- return value
- print('before recursion')
- assign_a_value_conditionally()
- print('after recursion')
- a = assign_a_value_conditionally()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement