Question: 5.26 Homework 4 - Looping In order to increase security, the ACME company has decided to obscure passwords by embedding them within a string. Thus,

 5.26 Homework 4 - Looping In order to increase security, the

5.26 Homework 4 - Looping In order to increase security, the ACME company has decided to obscure passwords by embedding them within a string. Thus, once an encrypted password has been decrypted, it must undergo a further step to retrieve the actual password from the decrypted string. You must write a program that: Takes a string containing an embedded password (e.g., fsue!kdhad!hasd) Takes a character that identifies the start and end of the embedded password (e.g.,!) Prints out the beginning and end locations of the password assuming indexing starts at zero (e.g., 59) Prints out the actual password (e.g., kdhad) If no password is found, prints out "No password found!" Assumptions: . There is only one password within the string . Every password has a valid begin and end token - no unended passwords The token character that delimits the password is found nowhere else in the string. You must use a loop to solve the problem. For example, when the input is: fsue! kdhad!hasd The output should be: 59 kdhad LAB ACTIVITY Le RITY 5.26.1: He 5.26.1: Homework 4 - Looping 0/14 main.py 1 Python.... thank you

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!