Created
June 13, 2020 08:52
-
-
Save timo-boehm/dcb9de028aa317178e61cc369b55f304 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 scores(name, score, records = dict()): | |
records = dict() if not records else records | |
records[name] = "passed" if score > 60 else "failed" | |
return records, id(records) | |
print(scores("Timo", 55)) # ({'Timo': 'failed'}, 140216484423152) | |
print(scores("Andy", 80)) # ({'Andy': 'passed'}, 140216484423232) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment