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 keys
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 4 3:2 2:2 7: 5:1 5
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
