Question: using only your own code and no built - in python functions, take a function that takes a list of strings and it should return

using only your own code and no built-in python functions, take a function that takes a list of strings and it should return a python dictionary where each key is a value in the list and the value is the number of times that string occurred in the list. Do it with this example array ['CT','NY','CT','CT','NJ','NJ']. In this case the dictionary would be: {'CT': 3,'NY': 1,'NJ': 2}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!