<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;"># Returns the maximum value of a nonempty sequence
# of elements that can be compared with the &lt;-operator.
def myMax(seq):
    if len(seq) == 0:
        raise ValueError("seq is empty")
    max = seq[0]
    for x in seq:
        if max &lt; x:
            max = x
    return max

def main():
    print(max([1, 2, 3]))
    print(max([3, 2, 1]))
    print(max(("a", "b")))
    print(max([]))
main()
</pre></body></html>