An open API service indexing awesome lists of open source software.

https://github.com/gill-singh-a/morse-code

Encodes or Decodes Morse code
https://github.com/gill-singh-a/morse-code

decoding encoding morse morse-code python python-3

Last synced: 7 months ago
JSON representation

Encodes or Decodes Morse code

Awesome Lists containing this project

README

          

# Morse Code
Encodes or Decodes Morse code

## Requirements
Language Used = Python3

Modules/Packages used:
* datetime
* optparse
* colorama
* time

## Input
It either takes input from a file or through its runtime.
### File Input
To give it a file to encode or decode, we can use the arguments "--encode" and "--decode" or '-e' or '-d' respectively.

For example:

* To encode
```bash
python morse_code.py --encode file_from_which_data_is_to_be_encoded
```
* To decode
```bash
python morse_code.py --decode file_from_which_data_is_to_be_decoded
```
### Runtime Input
If no file is specified, then the user will be asked to select an option to Encode or Decode a string.

Then after specifying we have to provide the required string to be encoded or decoded.

Finally the result would be displayed on the Command Line Interface.