mode python code example Example: statistics mode python when no.s are same import statistics statistics.mode(x) #mean and median are also available.