Python Pitfalls #2: Operator * with Mutable Objects Posted by By CodeGuru.Academy July 2, 2021Posted inPython Pitfalls To initialize a list of items, we can use operator * to duplicate one value to multiples. For example, the following code generate a list of 5 zeros. Then we…