79406904

Date: 2025-02-02 16:13:30
Score: 1
Natty:
Report link
req2 = req1

creates a reference to the same object. So when you modify either one, the other what is modifed as well.

Use the copy method to copy all values from on list to a new object.

req2 = req1.copy()
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Lucas Sander