So I have a list of values, and I have an idea of how to get the mode. But I'm unsure of how exactly to execute it. I know I will need the max value of the list using max()
and also for x in list
,and perhaps creating two lists, one for unique values and the other for how many times they appear, but besides that. I'm completely lost.
My list is:
[0,68, 92, 68, 49, 43, 68]
Expected output:
68
Sorry if this is vague! This is not a duplicate. I don't want to use a counter function or dictionary. Only lists/ loops.