Skip to content

Latest commit

 

History

History
 
 

Morse Code

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Morse Code Encoder/Decoder

Overview

This project provides a simple Python program to encode text into Morse code and decode Morse code back into text. It includes exception handling for invalid characters and offers default values when no input is provided.

Features

  • Encoding: Convert plain text into Morse code.
  • Decoding: Convert Morse code back into plain text.
  • Exception Handling: Handles invalid characters gracefully.
  • Default Values: If no input is provided, it uses default values ('SOS' for encoding and '... --- ...' for decoding).

Installation

  1. Ensure you have Python installed on your machine.
  2. Download the morse_code.py file.

Usage

Run the script directly from the command line:

python morse_code.py