list = [3,1,2,3,4,3,2] answer = {} for i in list: if i in answer: answer[i] += 1 else: answer[i] = 1 print(max(answer,key = answer.get))
To embed this project on your website, copy the following code and paste it into your website's HTML: