1. The problem statement, all variables and given/known data Find the mode from a list of numbers or find the most common string in a list of names. 2. Relevant equations 3. The attempt at a solution Code (Text): def most_common_element(lst): lst.sort() mostcommon =  mostcommonfreq = 0 prev = 0 count = 0 for e in lst: if e != prev: count = 1 if e == prev: count += 1 if count == mostcommonfreq: mostcommon.append(e) if count > mostcommonfreq: mostcommon = [e] mostcommonfreq = count prev = e return mostcommon Is there any way to make that more efficient?