Question: Modify the above Python program so that it first takes the number of names N as an input. Subsequently it queries the user N times
Modify the above Python program so that it first takes the number of names N as an input. Subsequently it queries the user N times to enter a name, and prints a message with that name. A user session will proceed as follows:
Program Prompt: How many names User response: 4 Program Prompt: Please enter a name User response: Jane Program Prompt: Please enter a name User response: Jose Program Prompt: Please enter a name User response: NotTellingYou Program Prompt:Please enter a name User response: Divad spelled backwards
Output
Hi Jane Thank you for being a part of my program! Hi Jose Thank you for being a part of my program! Hi NotTellingYou Thank you for being a part of my program! Hi Divad spelled backwards Thank you for being a part of my program!
Note: You will need to use a range function for this part of the problem.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
