#!/usr/bin/env python x = 576 y = 765 z = 657 # We want to find the maximum of: x,y,z # First find the maximum of x,y if x < y: M = y else: M = x # But z may be bigger, so if M < z: M = z print "M =", M