Last active
March 26, 2018 16:17
-
-
Save Bachmann1234/a7d7a2fb9a495646df88 to your computer and use it in GitHub Desktop.
Christmas Unicode!
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
NAME = "name" | |
BEHAVIOR = "behavior" | |
πΌ = 'πΌ' | |
π = 'π' | |
π = 'π' | |
π© = 'π©' | |
def π (πΆ): | |
if πΆ[BEHAVIOR] == πΌ: | |
return πΆ[NAME], π | |
else: | |
return πΆ[NAME], π© | |
if __name__ == "__main__": | |
πΆs = [ | |
{NAME: "billy", | |
BEHAVIOR: πΌ}, | |
{NAME: "jill", | |
BEHAVIOR: π}, | |
{NAME: "Jen", | |
BEHAVIOR: πΌ} | |
] | |
for name, present in map(π , πΆs): | |
print("{} gets {}".format(name, present)) |
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
billy gets π | |
jill gets π© | |
Jen gets π |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Requires: https://github.com/Bachmann1234/python-emoji