from scipy import stats idades = [18,22,18,29,32,17,19]x = stats.mode(idades)print(x)
Standard input is empty
ModeResult(mode=array([18]), count=array([2]))
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!