Skip to content

Instantly share code, notes, and snippets.

@fay-jai
Created June 30, 2020 04:17
Show Gist options
  • Save fay-jai/13f96ad47f16cb407ed4812533ee6c8e to your computer and use it in GitHub Desktop.
Save fay-jai/13f96ad47f16cb407ed4812533ee6c8e to your computer and use it in GitHub Desktop.
def make_account(balance):
def can_withdraw(amount):
return balance > amount
return can_withdraw
can_i_withdraw = make_account(100)
can_i_withdraw(150)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment