Help complete the program | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Help complete the program

I have a problem with the output of the program and I can not sort the dictionary as requested: ""Write a program that takes the number of people, then names each person with their favorite genres, and prints the name of each genre and the number of people interested in that genre in the order of most interest in the output. (If the interest rate is the same in different genres, print the English alphabet in the output in order.) If the genre is not selected, set the value to zero and print the name and number 0 in the output.."" >>> 4 hossein Horror Romance Comedy mohsen Horror Action Comedy mina Adventure Action History sajjad Romance History Action Sample output: Action: 3 Comedy: 2 History: 2 Horror: 2 Romance: 2 Adventure: 1 https://code.sololearn.com/ckqFFf88uTCf

7th Dec 2021, 11:56 AM
Khosro Mohammadi
Khosro Mohammadi - avatar
1 Answer
8th Dec 2021, 12:32 PM
Ipang