Picture Styles
In this project, your task is to write a Python program for a patient registration form that collects basic demographic information. Here are the required features of the program:
1. Ask the user how many patients they want to enter information for. For example, if the user enters 3, the program should ask for the demographic information of 3 patients.
2. For each patient, prompt the user to enter their information. The program should ask for the first name, which should only consist of letters. If the first name contains anything other than letters, such as a number, the program should warn the user and allow them to re-enter it in the correct format.
3. The program should ask for the last name, which should also only consist of letters. If the last name contains anything other than letters, the program should warn the user and allow them to re-enter it in the correct format.
4. The program should ask for the age of the patient.
5. The program should ask for the gender of the patient. The gender should be provided as either "Male" or "Female". If the user enters any other information, the program should warn the user and allow them to re-enter it with the correct option ("Male" or "Female").
6. The program should ask for the race of the patient. The race options should include "White", "African-American", "Asian", "American-Indian", and "Other". If the user enters any other data, the program should warn the user and allow them to re-enter it with the correct option.
7. Provide an exit option for the user to finish entering patient information. For example, the program can prompt the user to enter "exit" to finish entering patient information. After exiting, the program should display all the information for each patient on the screen. The output format is up to you, but it should be readable and understandable.
Tips: Use descriptive variable names, error checks, decision structures, repetitive structures (nested loops), functions, and appropriate data structures.