Question: debug my code follwong the instruction anf troubleshoot plz python In this lab, you will practice - writing a function to match the specifications -

debug my code follwong the instruction anf troubleshoot plz
python  debug my code follwong the instruction anf troubleshoot plz python In
this lab, you will practice - writing a function to match the
specifications - using string concatenation or f-strings to generate a new string
value - writing the main program to call your function Instructions 1.

In this lab, you will practice - writing a function to match the specifications - using string concatenation or f-strings to generate a new string value - writing the main program to call your function Instructions 1. Write a function create_password() expects two parameters pet_name (a string) and fav_number (an integer). The function returns a new password generated using the following pattern: If fav_number followed by the pet_name followed by the star and fav_number again (see the example beiow). 2. Create a program that gets a pet name and a favorite number as input from the user, calls the above function, and then prints the outpul as shown below. Troubleshooting - If you are getting Assert ionError make sure that your create_password() function is returning the correct value. - If you are falling the Unit Tests but passing all of the "Compare Output' tests make sure that your create_password () function is returning the correct value. This error is likely due to the if __name _ = _ main_ _ block printing the right value, but the function create_password ( ) is not creating/returning the correct value. Function works incorrectly. Test feedback If there are no other errors, then check it's name, the parameters and return values. 4.Unit test 0/3 create.password(Rocky, 7) Funcfion works incorrectly. Test feedback If there are no other errors, then check it's name, the parameters and return valuos. 5.Unit test A 0/6 Random parameters as input Function works incorrectly. Test feedback. If there are no other errors, then check 1ts name, the parameters and return values

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!