Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In python lang. -Create an app that will ask a user for a name. The program will then generate a secret identity name. If the

image text in transcribed

In python lang. -Create an app that will ask a user for a name. The program will then generate a "secret identity name." If the new name is not appropriate, then allow the user to enter in another name. If the name is appropriate, end the program. - In a function called main, ask the user for a first and last name. In the main function, pass the user's name to a function called secret_name that will switch the first letter of the first name with the first letter of the last name, then return the new name. -In the main function, pass this new name to a function called check_name that will check to make sure that there are no "forbidden words" in the user's name. - In the main function, check the value that was returned by check_name. If check_name says the name was appropriate, print the name in all capital letters, then end the program. If the user's new name has a forbidden word in it, then have the main function ask the user to enter a new name and repeat steps 2-4 until the new name is appropriate. -Call the main function. Your program should only call the main function once. Aside from the main() function call, all other code should be inside the secret_name or check_name functions

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases And Python Programming MySQL MongoDB OOP And Tkinter

Authors: R. PANNEERSELVAM

1st Edition

9357011331, 978-9357011334

Students also viewed these Databases questions

Question

Why is the System Build Process an iterative process?

Answered: 1 week ago