Updated Code snippets (markdown)

Bibo-Joshi 2022-04-04 16:39:57 +02:00
parent ce008f3696
commit 28ded607fb

@ -416,12 +416,10 @@ def flag(code):
code = code.upper()
return chr(ord(code[0]) + OFFSET) + chr(ord(code[1]) + OFFSET)
>>> flag('de')
'🇩🇪'
>>> flag('us')
'🇺🇸'
>>> flag('ua')
'🇺🇦'
>>> flag('un')
'🇺🇳'
>>> flag('eu')
'🇪🇺'
```
---