Passwordify

The questions below are due on Sunday June 29, 2025; 10:00:00 PM.
 
You are not logged in.

Please Log In for full access to the web site.
Note that this link will take you to an external site (https://shimmer.mit.edu) to authenticate, and then you will be redirected back to this page.

As an intern for Computer Securities (CS), you are assigned the task of making the company's employee passwords more secure. Your manager Larry instructs you to implement a function called strengthen_password to transform the old string passwords into new strings:

  • Any occurence of 'o' in the old password should become '0'.
  • Any occurence of 'e' should become '3'
  • Any occurence of 'i' should become '!'

You should not replace any other characters (even, for example, uppercase 'O', 'E', or 'I' characters).1

Link to starter code file

Once you've tested your code by hand, upload your file for testing:

  No file selected

Next Exercise: Compound Interest

Back to exercises


 
Footnotes

1Disclaimer: this algorithm is far from sufficient to create safe passwords! Wikipedia gives good guidelines to protect yourself. (click to return to text)