Skip to content

About

A text-based Python program to convert strings into Morse Code.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Text to Morse Code Converter

A simple interactive Python program that converts text into Morse code.

Features

  • Converts letters (A-Z) and numbers (0-9) into Morse code
  • Interactive console input
  • Unsupported characters (e.g. punctuation) are left unchanged in the output
  • Handles empty input gracefully

How to run

python main.py

Example

Enter text to convert to Morse code: SOS 123 Morse code: ... --- ... / .---- ..--- ...--

Project structure

morse-code-converter/ ├── main.py # Program logic and entry point ├── morse_dictionary.py # Morse code lookup table └── README.md

What I learned

  • Structuring a Python project into modules, separating data (the Morse dictionary) from logic (the conversion function)
  • Using dictionaries for lookup-based logic, including .get() with a default fallback value
  • Handling edge cases such as empty input and unsupported characters
  • Git/GitHub workflow: staging, committing, and pushing changes with meaningful commit messages

About

A text-based Python program to convert strings into Morse Code.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages