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 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
Get step-by-step solutions from verified subject matter experts
