How to Convert Strings to Morse Code in Python

Prompt

Result