Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Friends_name = {'Adeeb': ['1991','Male','Uber_Driver','Married'], 'Khaldoun':['1980','Male','Car_Dealer','Single'], 'AbdulQader':['1986','Male','IT_Tech','Married'], 'Kenan':['1989','Male','Travel_Agent','Single'], 'Oday':['1988','Male','Uber_Driver','Married'] } Modify above list to read dictionary items from a file and write the inverted dictionary to

Friends_name = {'Adeeb': ['1991','Male','Uber_Driver','Married'], 'Khaldoun':['1980','Male','Car_Dealer','Single'], 'AbdulQader':['1986','Male','IT_Tech','Married'], 'Kenan':['1989','Male','Travel_Agent','Single'], 'Oday':['1988','Male','Uber_Driver','Married'] }

Modify above list to read dictionary items from a file and write the inverted dictionary to a file.

Include the following in your submission:

The input file for your original dictionary (add three more items )

The Python program to read from a file, invert the dictionary, and write to a different file.

The output file for your inverted dictionary.

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

Securing SQL Server Protecting Your Database From Attackers

Authors: Denny Cherry

2nd Edition

1597499471, 978-1597499477

More Books

Students also viewed these Databases questions

Question

Why We Listen?

Answered: 1 week ago