Computer Science, asked by attrice02, 1 year ago

Without using any in-built functions, how can we find out the mode of a list in Python? I need the logic. Please help!

Answers

Answered by mehul1045
1
Given a list of items, recall that the mode of the list is the item that occurs most often.

I would like to know how to create a function that can find the mode of a list but that displays a message if the list does not have a mode (e.g., all the items in the list only appear once). I want to make this function without importing any functions. I'm trying to make my own function from scratch.


attrice02: Yeah thanks.
attrice02: I'm sorry but it's been many weeks since I've uninstalled the app.
attrice02: I'll do it as soon as I install it again. :)
attrice02: Yeah, I understand.
Similar questions