Question: 4) Write a function called integer_count (li) that takes a list of positive single digit integers as an argument and returns a dictionary where the

 4) Write a function called integer_count (li) that takes a list

4) Write a function called integer_count (li) that takes a list of positive single digit integers as an argument and returns a dictionary where the keys are the integers in the list and the values are the count for each integer in the list. For example, if li=[4,3,4,3,2,2,7,2,5], the function should return {43275:2:2:3:1:1}

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!