Answered step by step
Verified Expert Solution
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
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