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