Skip to content

Instantly share code, notes, and snippets.

@Bachmann1234
Last active March 26, 2018 16:17
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Bachmann1234/a7d7a2fb9a495646df88 to your computer and use it in GitHub Desktop.
Save Bachmann1234/a7d7a2fb9a495646df88 to your computer and use it in GitHub Desktop.
Christmas Unicode!
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))
billy gets 🎁
jill gets πŸ’©
Jen gets 🎁
@Bachmann1234
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment