Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

WORKING IN PYTHON This program is meant to give you practice using dictionaries. Write a program that first reads from a user a set of

WORKING IN PYTHON

This program is meant to give you practice using dictionaries.

Write a program that first reads from a user a set of usernames and passwords, and then enters a program that simulates a user typing in passwords.

In the first part of the program, you are to read in a single integer that states the number of username/password pairs that you will read in. Following this, there will be a set of that many usernames, one per line. Then there will be a set of that many passwords, one per line. You only need to prompt one time at the beginning of the program.

For example, the input might be:

3

John

Jim

Joe

SecreT_passWorD

12345

G$a-4(ztY

Once that is read in, you should then repeatedly ask the person to type in a username and then password. If they have a valid username and password combination, then print a message that they are allowed into the system. If they have an incorrect username/password, then tell them (and allow them) to try again (repeatedly).

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Fundamentals Of Database Systems

Authors: Sham Navathe,Ramez Elmasri

5th Edition

B01FGJTE0Q, 978-0805317558

More Books

Students also viewed these Databases questions

Question

=+what information would you need about the compact disc industry?

Answered: 1 week ago