From 144f0637412758534c03870aa992f819f7e1d86e Mon Sep 17 00:00:00 2001 From: Neil <71413248+neiladake@users.noreply.github.com> Date: Sun, 29 Mar 2026 13:23:26 -0400 Subject: [PATCH] Fix explanation of list copying dependency behavior Corrected the explanation regarding list copying to clarify that changes in list1 affect list2, not vice-versa. the inverse was written before, which is incorrect. --- 05_Day_Lists/05_lists.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/05_Day_Lists/05_lists.md b/05_Day_Lists/05_lists.md index a91c74d5f..9229f4f57 100644 --- a/05_Day_Lists/05_lists.md +++ b/05_Day_Lists/05_lists.md @@ -364,7 +364,7 @@ print(fruits) # [] ### Copying a List -It is possible to copy a list by reassigning it to a new variable in the following way: list2 = list1. Now, list2 is a reference of list1, any changes we make in list2 will also modify the original, list1. But there are lots of case in which we do not like to modify the original instead we like to have a different copy. One of way of avoiding the problem above is using _copy()_. +It is possible to copy a list by reassigning it to a new variable in the following way: list2 = list1. Now, list2 is a reference of list1, any changes we make in list1 will also modify the original, list2. But there are lots of case in which we do not like to modify the original instead we like to have a different copy. One of way of avoiding the problem above is using _copy()_. ```py # syntax