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'], 'Firas':['1988','Male','Salesman','Married'] Modify your program in Python to read dictionary items from a file and write the inverted

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'], 'Firas':['1988','Male','Salesman','Married'] 

Modify your program in Python 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 (with at least six 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

Advanced Database Systems

Authors: Carlo Zaniolo, Stefano Ceri, Christos Faloutsos, Richard T. Snodgrass, V.S. Subrahmanian, Roberto Zicari

1st Edition

155860443X, 978-1558604438

More Books

Students also viewed these Databases questions