CI / Test on Python 3.13 (push) Successful in 55s
Task: MIL-003#1 Task: MIL-003#2 Refs #14 Refs #15 Refs #16 Refs #17 Refs #18
32 lines
820 B
Markdown
32 lines
820 B
Markdown
# Usage
|
|
|
|
🌐 **English** · [Dansk](Usage-da) · [Bahasa Melayu](Usage-ms)
|
|
|
|
Activate the virtual environment (see [Install](Install)), then start the program:
|
|
|
|
```bash
|
|
python -m nato_alphabet
|
|
```
|
|
|
|
The installed command does the same:
|
|
|
|
```bash
|
|
nato-alphabet
|
|
```
|
|
|
|
## Spell a word
|
|
|
|
The program asks for a word and prints the NATO code word of each letter, in order. Upper and lower case give the same result.
|
|
|
|

|
|
|
|
## Invalid input
|
|
|
|
A digit, a space or a punctuation mark is not a letter. The program says so and asks again.
|
|
|
|

|
|
|
|
## Press Ctrl+C or Ctrl+D
|
|
|
|
Ending the input (Ctrl+D on Linux and macOS, Ctrl+Z then Enter on Windows) or pressing Ctrl+C closes the program quietly.
|