00:01
In this video, we'll go over how to create a python program that strengthens user -created passwords by replacing characters in that password, according to the key below, and then appending an explanation point.
00:14
So first, we'll define a function, calling it strengthened password, which takes an argument password.
00:24
We can then create a dictionary with our letters and their corresponding replacements.
00:32
I've already copied and pasted that.
00:36
Next, we can iterate through our password by the letters, so for letter in password.
00:43
If a letter in our character dictionary, then we'll get the replacement at that letter or key.
00:54
So our r is going to be our replacement value.
01:00
Then we'll reset password to password...