Many user-created passwords are simple and easy to guess. Write a program that takes a simple password and makes it stronger by replacing characters using the key below, and by appending "q*s" to the end of the input string.
Ex: If the input is:
mypasswordthe output is:
Myp@ssw.rdq*sHint: Python strings are immutable, but support string concatenation. Store and build the stronger password in the given password variable.
Solved 1 Answer
See More Answers for FREE
Enhance your learning with StudyX
Receive support from our dedicated community users and experts
See up to 20 answers per week for free
Experience reliable customer service
Step 1Coded using Python 3.Step 2word = input()password = ''# Modify characters i, a, m, B, and o in passwordfor character in word:if character == 'i': # IF character equals 'i' change to '!'password += '!'elif character == 'a': # ELSE IF character equals 'a' change to '@'password += '@'elif character == 'm': # ELSE IF character equals 'm' change to 'M'password += 'M'elif character == 'B': # ELSE IF character equals 'B' change to '8'password += '8'elif character == 'o': # ELSE IF character equals 'o' change to '.'password += '.'else: # When symbols do not get replacedpassword += characterprint(password + 'q*s') # Make password stronger by adding "q*s" to the end of# the input stringStep 3\equiv (Q & JaswanthkarPand / SickBriefPacket®Run8+ InviteConsole Shellmypassword5 \square#Mdify characters i, a, m, B, and o in password for character in word:if character == ' i ':password += '!'elif character == 'a': # ELSE IF character equals 'a' change to 'e'password += ' 9 'elif character == ' m " : # ELSE IF character equals ' m ' change to ' M 'password += ' M 'elif character == ' B ": # ELSE IF character equals ' B ' change to " 8 'password += ' 8 'elif character == ' 0 ': # ELSE IF character equals ' 0 ' change to ".password += '.else:password += characterprint(password + " q " s ") #Make password stronger by adding " q ) s^{\text {" }} to the end of.# the input strin? ...