Question: This is a python 3 program: I have this program where it opens a file and creates a list of each line and then creates

This is a python 3 program:

I have this program where it opens a file and creates a list of each line and then creates a dictionary where the first index of each line are the key and the rest would be the values. It then prompts a user input where it asks for a key. It would then search for one of the items where it contains a '1' and add that item plus the remaining items to a new list. What I am having difficulties is once that new list is made, it should search for the rest of the keys to that have that identical list in its value and then print out the key. This is what I have so far:

This is a python 3 program: I have this program where itand this is the file that im using.

opens a file and creates a list of each line and then

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!