Created
June 16, 2017 16:49
-
-
Save kjd/3290c41b43f0c7b7e4aafc2b1872880a to your computer and use it in GitHub Desktop.
ccTLD to flags with Emoji
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 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