Write a program that generates a password that is composed of your ID and Full Name after being scrambled and ignoring any spaces.
Example: If your ID is 123 and your full name is “John Doe” then the password might be “J1eon3hD2o”.
Please find the python program which generates the scrambled password and added necessary comments in it.
Program:
import random
#read user input
ide=input("Enter your Id: ")
name=input("Enter your name: ")
#remove spaces from name and ide
name=name.replace(" ", "")
ide=ide.replace(" ", "")
#concatenate both name and ide
catPasswd=name+ide
#scramble the generated password
scramblestring=''.join(random.sample(catPasswd,len(catPasswd)))
print(scramblestring)
Output:
Enter your Id: 123
Enter your name: Lenbron James
ornmbJ3sa2e1eL
Screen Shot:


IN PYTHON Write a program that generates a password that is composed of your ID and...