Multidimensional list initialization using replication is error prone
Replicating a `list` using replication operator creates references to the existing objects, not copies, which could introduce bugs. We recommend that you create a `list` of the desired length and then fill in each element with a newly created `list`, or use `list` comprehension.
def error_prone_multidimensional_list_noncompliant():
    # Noncompliant: initialises a multidimensional list using replication.
    multi_dimension_list = [[1]]*3
def error_prone_multidimensional_list_compliant():
    # Compliant: avoids initialising a multidimensional list using replication.
    multi_dimension_list = [[1 for x in range(2)] for y in range(3)]