Convert Sentences to Morse Code

International Morse code is a method used in telecommunication to encode text characters as standardized sequences of two different signal duration, called dots and dashes, or dits and dahs. The translation table for Morse Code is given below.

Create a program using Python or JavaScript which gets a message from the user and translates the same to Morse code using period (.) and hyphens (-). Separate each letter of the words with one space, each word with a tilde (~) and each sentence with a new line.

Copy paste the program code in an email to team@digitech-academy.com.au by 15-Sep-2021.

The winning entry will receive a eGift Voucher worth $30 (AUD).

This challenge is only open to Digitech Academy students who have enrolled for Python or Web Development course.

If multiple correct entries are received, the most well written program will be awarded the prize.

The name of the winner will be published in next month’s newsletter.