The quantity of items inside a list is named the list’s duration. You could Look at the duration of the list by using the designed-in len() perform:In the next case in point, you employ a start off worth that’s higher as opposed to length of colours. Because there’s absolutely nothing to retrieve beyond the top with the list, Python returns a