Answered step by step
Verified Expert Solution
Question
1 Approved Answer
plz use python valid UPI is matching with a valid password if they have the same index in their respective list. E.g., considering the following
plz use python
valid UPI is matching with a valid password if they have the same index in their respective list. E.g., considering the following registered UPI and password lists: registered_upis =[ "mjac999", "jcoc100", "lmes754", "cron777", "emac263", "jduj117", "gclo450"] registered_passwords = ["thriLLer82", "Hat0n4414", "GoatWC2022", "SuilialNassr23", "PcqcNP2022", "BlanQueTTe2006", "Whatelse06"] "mjac999" matches with "thriLLer82", "jcoc100" matches with "HatOn4414", etc... The program prints: - "You are logged in" if the UPI and password are both valid and they have the same index, - "Invalid UPI" if the UPI is invalid, - "Invalid password" if the password is invalid, - "UPI and password do not match" if the UPI and password are valid, but they do not have the same index. Notes: - UPIs and passwords are case sensitive. - Each UPI and password in the given lists are unique. - Remember that the index() method will return an error if the element passed as an argument is not in the list. Given this, your program should check if the UPI and the password match only when they are valid. - The output must be in the format shown in the examples below, including the format of the prompt, and all spaces and punctuation. For exampleStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started