0

Help ....Coding Explaination for to find most frequent number

My questions is what is happening in this code (how the code run) and why count function written as "x.count" instead "x.count()" and and can i replace key with another variable. I really lost😭😭🥺 https://code.sololearn.com/cJzG5LA8qPbS/?ref=app

29th Oct 2022, 5:59 PM
Aisy Danish Mohd Nazry
Aisy Danish Mohd Nazry - avatar
1 Odpowiedź
+ 3
1. You create a Set to get rid of double numbers. The key argument of the max-function expects a function, not a function-call.
29th Oct 2022, 6:15 PM
Oma Falk
Oma Falk - avatar