Created
September 28, 2018 19:08
-
-
Save alumag/38c822cb37df519650a7062463ee41d3 to your computer and use it in GitHub Desktop.
translate Hebrish to English
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
english = "poiuytrewqlkjhgfdsamnbvcxz" | |
hebrew = "פםןוטארק'/ךלחיעכגדשצמנהבסז" | |
if all([*map(lambda c: (c in hebrew), HEBRISH_TEXT)]): | |
text = ''.join([*map(lambda x: (english[hebrew.index(x)]), HEBRISH_TEXT)]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
HEBRISH_TEXT = "ןךםהקבשאד"
>> "ilovecats"