[Python] python[Python] python

☎️

Some Mars

Week 15, 2026

import re MORSE = { '.-': 'A', '-...': 'B', '-.-.': 'C', '-..': 'D', '.': 'E', '..-.': 'F', '--.': 'G', '....': 'H', '..': 'I', '.---': 'J', '-.-': 'K', '.-..': 'L', '--': 'M', '-.': 'N', '---': 'O', '.--.': 'P', '--.-': 'Q', '.-.': 'R', '...': 'S', '-': 'T', '..-': 'U', '...-': 'V', '.--': 'W', '-..-': 'X', '-.--': 'Y', '--..': 'Z', '.----': '1', '..---': '2', '...--': '3', '....-': '4', '.....': '5', '-....': '6', '--...': '7', '---..': '8', '----.': '9', '-----': '0' } text = ( "❄️ ☀️☀️☀️☀️ ☀️ ☀️❄️❄️ ❄️❄️❄️ ☀️❄️☀️ ☀️❄️☀️☀️ ❄️☀️☀️ " "❄️☀️❄️☀️ ☀️☀️☀️☀️ ☀️❄️ ❄️☀️ ❄️❄️☀️ ☀️ ❄️☀️☀️ ☀️❄️❄️ ☀️☀️☀️☀️ ☀️ ❄️☀️ " "☀️☀️☀️ ☀️❄️ ❄️❄️ ☀️☀️❄️ ☀️ ☀️❄️☀️☀️ ❄️❄️ ❄️❄️❄️ ☀️❄️☀️ ☀️☀️☀️ ☀️ " "☀️☀️☀️ ☀️ ❄️☀️ ❄️ ❄️ ☀️☀️☀️☀️ ☀️ ☀️☀️❄️☀️ ☀️☀️ ☀️❄️☀️ ☀️☀️☀️ ❄️ " "☀️❄️☀️☀️ ❄️❄️❄️ ❄️☀️ ❄️❄️☀️ ❄️☀️☀️ ☀️☀️ ☀️☀️☀️ ❄️ ☀️❄️ ❄️☀️ ❄️☀️❄️☀️ ☀️ " "❄️❄️ ☀️ ☀️☀️☀️ ☀️☀️☀️ ☀️❄️ ❄️❄️☀️ ☀️ ☀️❄️❄️ ☀️☀️☀️☀️ ☀️❄️ ❄️ " "☀️☀️☀️☀️ ☀️❄️ ❄️ ☀️☀️☀️☀️ ❄️❄️☀️ ❄️❄️❄️ ❄️☀️☀️ ☀️❄️❄️ ☀️❄️☀️ ❄️❄️❄️ ☀️☀️❄️ " "❄️❄️☀️ ☀️☀️☀️☀️ ❄️ ☀️☀️☀️☀️❄️ ☀️☀️☀️☀️❄️ ❄️❄️ ☀️☀️ ☀️❄️☀️☀️ ☀️ ☀️☀️☀️ " "❄️☀️☀️☀️ ☀️ ❄️ ☀️❄️❄️ ☀️ ☀️ ❄️☀️ ☀️❄️❄️ ☀️❄️ ☀️☀️☀️ ☀️☀️☀️☀️ ☀️☀️ " "❄️☀️ ❄️❄️☀️ ❄️ ❄️❄️❄️ ❄️☀️ ☀️❄️ ❄️☀️ ❄️☀️☀️ ❄️☀️☀️☀️ ☀️❄️ ☀️❄️☀️☀️ " "❄️ ☀️☀️ ❄️❄️ ❄️❄️❄️ ☀️❄️☀️ ☀️ ☀️❄️ ☀️❄️☀️☀️ ❄️❄️❄️ ❄️☀️ ❄️❄️☀️ " "☀️❄️ ❄️ ☀️ ☀️❄️☀️☀️ ☀️ ❄️❄️☀️ ☀️❄️☀️ ☀️❄️ ☀️❄️❄️☀️ ☀️☀️☀️☀️ " "☀️❄️☀️☀️ ☀️☀️ ❄️☀️ ☀️ ❄️❄️❄️ ❄️☀️ ☀️☀️❄️❄️❄️ ☀️☀️☀️☀️❄️ ❄️❄️ ☀️❄️ " "❄️☀️❄️❄️ ☀️❄️❄️❄️❄️ ❄️❄️❄️☀️☀️ ☀️☀️☀️☀️❄️ ☀️☀️☀️☀️❄️ ❄️ ❄️❄️❄️ " "☀️❄️ ☀️❄️☀️☀️ ☀️☀️❄️☀️ ☀️❄️☀️ ☀️ ❄️☀️☀️ ☀️☀️☀️❄️ ☀️❄️ ☀️☀️ ☀️❄️☀️☀️" ) text = text.replace('☀️', '.').replace('❄️', '-') text = text.replace(' ', ' / ') text = text.replace(' ', ' ') words = text.split(' / ') decoded_words = [] for word in words: letters = word.split() decoded_letters = [MORSE[code] for code in letters if code in MORSE] decoded_words.append(''.join(decoded_letters)) message = ' '.join(decoded_words) print(message)