def pad(l, size, padding):
    if (size >= len(l)):
        return (l + ([padding] * abs((len(l) - size))))
    else:
        return l[0:size]
def pad(l, size, padding):
    if (size >= len(l)):
        return (l + ([padding] * abs((len(l) - size))))
    else:
        return l[0:size]