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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started