Instruction
Very well done! It's time to wrap things up. First, let's review what we covered in this section:
min(elements)andmax(elements)can be used to find the smallest/largest item in any data structure that can be iterated over with aforloop.min(elements)andmax(elements)can be used to find the smallest/largest number, the first/last string (alphabetically), or the first/last character (alphabetically).sum(elements)finds the sum of all elements in a data structure. It only works when all the elements are numbers.elements.count(item)returns the number of occurrences of item in elements.elements.index(item)returns the index of the first occurrence of item in elements. It throws aValueErrorif there is no such item.
Are you ready for a short quiz?
Exercise
Click to continue.



