Question: develop python program; 2. Bob's Passphrase Passwords (5 points) Your friend Bob from the IT Department uses a very specic password structure for his online

develop python program;

2. Bob's Passphrase Passwords (5 points) Your friend Bob from the IT Department uses a very specic password structure for his online accounts: An integer, followed by an acronym formed from the rst letters of a specic (and presumably memorable) phrase, followed by a second integer. For example, given the numbers 5 and 18 and the phrase "I left my socks in the dryer", Bob's algorithm would produce the password 5Ilmsitd18 (capitalization is preserved). Dene a Python function named password() that takes three arguments in the following order: two integer values, followed by a single string. The function returns a new string (a password that has been created using the function arguments and the construction scheme described above). The rst integer argument goes at the beginning of the result, while the second integer argument is placed at the end of the password. Make sure that the string you return does not contain any extra characters or spaces!

Hint: You may nd it extremely helpful to use Python's split() function here. split() is a string method that returns a list where each "word" in the original string is a separate list item. For example, if the variable msg held the string "Now is the time for all good men", msg.split() would return the list [ "Now", "is", "the", "time", "for", "all", "good", "men" ].

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!