Mean, Median, Range and Mode Calculator | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Mean, Median, Range and Mode Calculator

I have made some code in Python that calculates the mean, median and range for a set of numbers inputted by the user but I do not know how to do the mode- I tried searching it up but failed to understand. An explanation of what I should use here would be greatly appreciated and please tell me what you think of the code for the mean, median and range calculator so far. Thank you and I hope you all have a nice day! https://code.sololearn.com/cqTt8XZ2ubCJ/?ref=app

29th Aug 2022, 9:51 PM
hello
hello - avatar
1 Answer
0
Count elements by count method of list and get the max of it then get the index of max count
1st Sep 2022, 5:15 AM
RISHABH
RISHABH - avatar