Created
May 5, 2017 12:45
-
-
Save neerajvashistha/726d732ccfc475dbfa646ef7ec0c6459 to your computer and use it in GitHub Desktop.
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
import unicodedata | |
my_text ="\U0001F602 and all of this \U0001F605" | |
for char in range(ord("\U0001F602"),ord("\U0001F64F")): | |
my_text=my_text.replace(chr(char),unicodedata.name(chr(char),"NOTHING")) | |
print(my_text) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment