"""Defines mmax function""" def mmax(l): x = l[1] for i in l[2 : -1] : if i>x : x = i return x