max, min, sum, sorted
Also written: max(), min(), sum(), sorted()
Built-in functions for a collection of values. They give the largest, smallest, total, and a new list in order. `sorted` leaves the original alone, unlike the `.sort()` method.
Also written: max(), min(), sum(), sorted()
Built-in functions for a collection of values. They give the largest, smallest, total, and a new list in order. `sorted` leaves the original alone, unlike the `.sort()` method.