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