Question: Use Python language to: Prompt the user for a name. The name is passed to a function which determines if the name is valid. A

Use Python language to:

Prompt the user for a name. The name is passed to a function which determines if the name is valid. A valid name contains only the letters in the range of A Z or a z. If the value is valid, return a message saying so, if not, return a message that indicates the index in the name where the problem occurs. Repeat the prompt until the user enters a valid name.

If the name is valid, convert the name to the NATO Phonetic Alphabet. The alphabet is used for spelling words and names over the phone. Using a map where each of the 26 letters is a key and each element of the NATO alphabet is a corresponding value, print out the name that corresponds to characters as they are appear in the name. Continue to input names until the user wishes to halt. As always, document your functions using docstrings and provide a preface for the complete program

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!