This Python script converts a given word into its NATO phonetic alphabet equivalent.
- Python 3.x
- pandas library
-
Clone the repository:
git clone <repository_url>
-
Install the required dependencies:
pip install pandas
-
Ensure you have Python and pandas installed.
-
Run the script:
python nato_phonetic_converter.py
-
Follow the prompt to enter a word.
-
The script will output the NATO phonetic alphabet codes corresponding to each letter in the word.
Suppose you enter the word "HELLO":
Enter a word: HELLO
['Hotel', 'Echo', 'Lima', 'Lima', 'Oscar']
This shows the NATO phonetic alphabet representation of each letter in the word.
nato_phonetic_converter.py
: The Python script for converting words to NATO phonetic codes.nato_phonetic_alphabet.csv
: CSV file containing the NATO phonetic alphabet data.
- The script reads the NATO phonetic alphabet data from
nato_phonetic_alphabet.csv
. - Ensure the CSV file is present and correctly formatted for proper script execution.