Question: this is my code right here: import collections def print_poke_counts(poke_list): print(sorted(poke_list)) for i in sorted(poke_list): print(i,poke_list.count(i)) print_poke_counts(poke_list) output : Charmander 4 Charmander 4 Charmander 4

this is my code right here:

import collections def print_poke_counts(poke_list): print(sorted(poke_list)) for i in sorted(poke_list): print(i,poke_list.count(i)) print_poke_counts(poke_list)

output :

Charmander 4 Charmander 4 Charmander 4 Charmander 4 Dragonite 1 Eevee 4 Eevee 4 Eevee 4 Eevee 4

how do i make it so the output is as follows

Charmander 4

Dragonite 1

Eevee 4

In python

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!