Python: list of lists
Lists are a mutable type – in order to create a copy (rather than just passing the same list around), you need to do so explicitly: However, list is already the name of a Python built-in – it’d be better not to use that name for your variable. Here’s a version that doesn’t use list as a variable name, … Read more