def plural(num, one, many):
    """Convenience function for displaying a numeric value, where the attached noun
    may be both in singular and in plural form."""

    return "%i %s" % (num, one if num == 1 else many)