Question: Question Goal: Learn to write while loops. Assignment: Assume a string is assigned to passphrase. Unfortunately, whoever wrote it did not read the requirements correctly
Question
Goal: Learn to write while loops.
Assignment: Assume a string is assigned to passphrase. Unfortunately, whoever wrote it did not read the
requirements correctly because they used special characters, which is not allowed. Passphrases need to be
alphanumeric only. Fortunately, they added most of these special characters to the end of the passphrase. Write
some code that assigns to passphrase the longest substring of the original passphrase that satisfies the
alphanumeric requirement. For example, if the original passphrase is abct@ the new passphrase will be abc
You must use a while loop in this exercise.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
