We were unable to load Disqus. If you are a moderator please see our troubleshooting guide.

N-ONE • 3 years ago

nice ,but need more explanation

Charm_wolf • 3 years ago

yeah me too

Charm_wolf • 3 years ago

i didnt get it for some reason

JacobEkins • 3 years ago

Print the message first to find that the message is a list of morse code letters. End message is python is fun!
def decode_message(message):
# Decode the message
message = "python is fun!"
return message

Şahin Murat Oğur • 3 years ago

you can use this alphabet
morse_to_latin = {'.-': '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', '-----': '0',
'.----': '1', '..---': '2', '...--': '3',
'....-': '4', '.....': '5', '-....': '6',
'--...': '7', '---..': '8', '----.': '9','-.-.--':'!','/':' '}

BluesyStrings • 2 years ago

I have 2 for loops, one for morse_to_latin and message. I want to split each variable in morse_to_latin and print the 2nd field by splitting each variable using the spit command.

BluesyStrings • 2 years ago

I am thinking run a for loop on message and compare each iteration to each morse code. Is that logical?

TTSS • 3 years ago

You need to create a dictionary of Morse code letters and then decode the message from the dictionary. Don't forget to answer in lower-case string

Karin99 • 3 years ago

This question is so unclear

Charm_wolf • 3 years ago

but i recommended it though

3Dimka • 3 years ago

I didn't know the code of the last character, so I just guessed it :)