Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

README.md

Telephone Number Translator

A Python program that converts alphabetic characters in a 10-character telephone number (e.g., 1-800-FLOWERS) into their numeric equivalents, following the standard telephone keypad mappings.

Features

  • Input Validation: Ensures the input matches the XXX-XXX-XXXX format before proceeding.
  • Character Translation: Converts alphabetic characters to their numeric equivalents based on telephone keypad mappings:
    • A, B, C2
    • D, E, F3
    • G, H, I4
    • J, K, L5
    • M, N, O6
    • P, Q, R, S7
    • T, U, V8
    • W, X, Y, Z9
  • Seamless Output: Displays the translated telephone number in the same format.

Technologies

  • Python: Implements string manipulation and input validation to achieve translation.

How to Run

  1. Open the Python Source file (phoneNum_translate.py) in Visual Studio Code.
  2. Run the project.

About This Project

This project was developed for my python programming class.