Remove all emojis from a string
📁 Advanced Python Topics
Suppose we have a string:
""???????????????????????????????❤??????✋??? What a beautiful day!""
How can we remove all emojis from this string and get only the clean text as output:
""What a beautiful day!""
Also, the emojis can be completely different, not necessarily the ones in the string.
It's simple:
a = sorted(s.split(' '))In reverse order:
a = sorted(s.split(' '), reverse=True) Log in to leave an answer