Some tricks with max() function. solution in Clear category for The Most Frequent by ArchTauruS
"""Some tricks with max() function.
1, max() can sort not only int, float, str, but also touple, list, etc.
2, so use max() can easily find the max of [(count1, item1), (count2, item2), ...] for count.
return max((data.count(c), c) for c in set(data))
Nov. 9, 2018