Created
June 30, 2020 04:17
-
-
Save fay-jai/13f96ad47f16cb407ed4812533ee6c8e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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