import demoji
text = "Enjoy your meal! 🍽🍕🍔🍟"
emojis = demoji.findall(text)
print("Emojis found:", list(emojis.keys()))
✨ Example Output:
Emojis found: ['🍽', '🍕', '🍔', '🍟']
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
📜 This Python program checks if a given word or phrase is a palindrome (reads the same backward as forward)!
def is_palindrome(text):
clean_text = ''.join(char.lower() for char in text if char.isalnum())
return clean_text == clean_text[::-1]
text = "A man, a plan, a canal: Panama"
print("Is Palindrome:", is_palindrome(text))
✨ Example Output:
Is Palindrome: True
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM