Untitled3 - Jupyter Notebook
Untitled3 - Jupyter Notebook
Decrypted Text: nine five seven three zero eight five U+1F602 U+1F604 nine f
ive seven U+1F604 six U+1F600 five seven U+1F604 zero five U+1F601 seven U+1
F600 three U+1F605 U+1F602 U+1F603 nine U+1F603 four three three U+1F603 U+1
F603 zero one six seven U+1F601 nine one U+1F604 eight U+1F604 U+1F601 five
seven six nine seven U+1F606 U+1F60D U+1F923 zero eight U+1F602 two four thr
ee nine U+1F642 U+1F602 U+1F600 six eight U+1F605 nine U+1F606 two six U+1F6
04 U+1F60D nine zero U+1F923 two U+1F603 three U+1F604 U+1F606 U+1F602 nine
U+1F60D U+1F642 U+1F606 U+1F603 U+1F601 U+1F642 U+1F604 U+1F642 U+1F604 thre
e two U+1F923 eight two five U+1F602 U+1F605 U+1F600
localhost:8888/notebooks/Untitled3.ipynb?kernel_name=python3# 1/3
28/10/2024, 10:55 Untitled3 - Jupyter Notebook
In [2]: import re
# Decrypted text
decrypted_text = """
nine five seven three zero eight five U+1F602 U+1F604 nine five seven U+1F604
"""
# Function to replace Unicode emoji codes with actual emojis
def replace_unicode_with_emoji(text):
# This regex finds all Unicode emoji representations (like U+1F602)
emoji_unicode_pattern = re.compile(r'U\+([0-9A-Fa-f]+)')
words = text.split()
result = [words_to_numbers.get(word, word) for word in words]
return ' '.join(result)
# Replace the emoji Unicode representations
decrypted_with_emojis = replace_unicode_with_emoji(decrypted_text)
# Replace number words with actual digits
final_text = word_to_number(decrypted_with_emojis)
# Print the final decrypted text with emojis
print(final_text)
9 5 7 3 0 8 5 😂 😄 9 5 7 😄 6 😀 5 7 😄 0 5 😁 7 😀 3 😅 😂 😃 9 😃 4
3 3 😃 😃 0 1 6 7 😁 9 1 😄 8 😄 😁 5 7 6 9 7 😆 😍 🤣 0 8 😂 2 4 3 9
🙂 😂 😀 6 8 😅 9 😆 2 6 😄 😍 9 0 🤣 2 😃 3 😄 😆 😂 9 😍 🙂 😆 😃
😁 🙂 😄 🙂 😄 3 2 🤣 8 2 5 😂 😅 😀
localhost:8888/notebooks/Untitled3.ipynb?kernel_name=python3# 2/3
28/10/2024, 10:55 Untitled3 - Jupyter Notebook
In [ ]:
localhost:8888/notebooks/Untitled3.ipynb?kernel_name=python3# 3/3