4.15 LAB: Password modifier

The program written modifies inputted password, replacing certain characters to make it stronger. The program is written in python 3 thus ;
password = input("Set your password : ")
#accepts input from user meant for password
modified_password = ''
#initialize an empty string to hold the modified password
for val in password:
#loop through each password value
if val == 'i':
modified_password += "!"
elif val == 'a':
modified_password += ''
elif val == 'm' :
modified_password += 'M'
elif val == 'B' :
modified_password +='8'
elif val == 'o':
modified_password += '.'
else :
modified_password += val
#checks for certain values in the input and replaces them, with the output assigned to the modified password variable
print(modified_password+"q*s")
Sample run of the modified password with the string "q*s" concatenated at the end.
Learn more :https://brainly.com/question/15086326