A list of Python functions that make life easier. — 1. enumerate(iterable, start=0) This function creates a enumerate object which takes in an iterable sequence. We can use this function often when we need the iterator along with the value unlike >>> range(len(list)) Example: >>> chessPieces = ["Pawns", "Rook", "Horse", "Bishops", "King", "Queen"]
>>> list(enumerate(chessPieces))
[(0, 'Pawns'), (1, 'Rook'), (2, 'Horse'), (3, 'Bishops'), (4, 'King')…