On 27/02/17 22:00, Johnny Hh wrote:
> write a python function called find_most_freq() that returns the element of
> a given list that occurs the most frequently. If there are ties, take the
> number found first.
OK, You've shown us the exercise, now show us your attempt at a solution.
Here is a starter:
def find_most_freq():
# your code here
return element
Now show us how you think you fill that in. Or tell us where
and how you are stuck.
--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos
_______________________________________________
Tutor maillist - [email protected]
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor