Python How to read a file into a dictionary when key is on the first line of the text and value is on the second line of the text Example of the text file: Alabama (should be assign as key) Montgomery...


Python


How to read a file into a dictionary when key is on the first line of the text and value is on the second line of the text


Example of the text file:


Alabama (should be assign as key)


Montgomery (should be assign as value)


Alaska


Juneau


Arizona


Phoenix



Jun 08, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here