Skip to content

Instantly share code, notes, and snippets.

@kjd
Created June 16, 2017 16:49
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kjd/3290c41b43f0c7b7e4aafc2b1872880a to your computer and use it in GitHub Desktop.
Save kjd/3290c41b43f0c7b7e4aafc2b1872880a to your computer and use it in GitHub Desktop.
ccTLD to flags with Emoji
def cctld_to_flag(domain):
for letter in domain:
print(chr(ord(letter)+127365), end='')
cctld_to_flag('au')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment