Last active
February 13, 2022 18:44
-
-
Save ptmcg/bf35d5ada416080d481d789988b6b466 to your computer and use it in GitHub Desktop.
Hello, World rendered in a variety of Unicode characters
This file contains hidden or 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 ๐๐ฎ๐๐๐(): | |
try: | |
๐ฅe๐ ๐๐๏ธด = "Hello" | |
๐จ๐ฌr๐ตแต๏น = "World" | |
แต๐๐ข๐ฏ๐ฝ(f"{๐ต๏ฝ ๐ต๐ฉยบ_}, {๐โ๐lโ ๏ธด}!") | |
except ๐ฃ๐ชแต๏ฝ ๐ค๐ฟแตฃ๐๐ as โ ๐c: | |
๐rโนโโ("failed: {}".๐๐ผสณแตยช๏ฝ(แต๐ฑ๐ฌ)) | |
# snippet from unittest/util.py | |
_๐โ ฌ๐ ๐ฒ๐โ๐ชLแดฐ๐ฌ๐ฝ๏น๐ท๐ผ๐ก = 12 | |
def _๐ฐสฐ๐ธสณ๐ฅ๐๐(๐ฐ, p๐๐ข๏ฌ๐๐๐๐, ๏ฝแตค๐๐ณ๐๐ฅ๐นโ๐): | |
หข๐ธ๏ฝ๐ฝ = ๐ฅ๏ฝ ๐ฏ(๐) - ๏ฝr๐๐๐ขx๐ แต๐ท - ๐๐ช๏ฌ๏ฝ๐ ๐น๐โ | |
if s๏ฝi๐ฑ > _๐๐๐ ๐๐ดH๐บ๏ผฌ๐ฏ๐๐๏นL๐๐ฉ: | |
๐ด = '%s[%d chars]%s' % (๐จ[:๐ฑ๐ซ๐๐๐๏ฝโ๐๐], โ๐๐p, ๐ผ[๐๐๐(๐) - ๐จ๐๐๏ฌx๐กแต๐ฏ:]) | |
return โ | |
if _๏ธดโฟ๐ช๐๐__ == "__main__": | |
๐eโหก๐() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment