Question: python basic please!! Lab 2A - Dictionaries 50 pts Directions: You will be given a file called FruitDat.txt. The format of the file will be


Lab 2A - Dictionaries 50 pts Directions: You will be given a file called FruitDat.txt. The format of the file will be as follows integer key, val key, val key, val The first line of the file contains an integer that represents how many lines of data exist in the file. The remaining lines contain a string and a float separated by a comma. The string is intended to be the key for the dictionary (in the form of a string that names a particular fruit) and the float is the cost of that fruit. (feel free to look at the txt file and see what it contains) . . . Write a python program that: Reads in key/value pairs from the file into a dictionary. Lists the contents of the dictionary using the following format:
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
