shria-devarakonda / morse-convert

Convert from/to morse code.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Morse Converter

Enter "text" or "morse" to convert from text or morse respectively, then enter your string you would like to convert. Check out the morse-code.json file for checking out all the permitted characters. Spaces in the text will be considered as spaces in the morse code too.

Check out the example below:

If you enter "text" and then enter:

SHRIA DEVARAKONDA

In the output you will recieve:

Converted string: ...\....\.-.\..\.-\ \-..\.\...-\.-\.-.\.-\-.-\---\-.\-..\.-

Here, the space: ' ' is retained as a space itself. Converting it back is also the same.

If you enter "morse" and then enter:

...\....\.-.\..\.-\ \-..\.\...-\.-\.-.\.-\-.-\---\-.\-..\.-

In the output you will recieve:

Converted string: shria devarakonda

About

Convert from/to morse code.


Languages

Language:Python 100.0%