Bạn đang xem thử công khai
Đăng nhập để lưu tiến độ, làm bài tập, thảo luận và nhận phản hồi.
After this unit you will: work with lists without falling into the copying trap.
nums[0] = 99.append, insert, extend, remove, pop, del, clear.b = a does not make a copy — both names point to the same list. For a real copy, use a.copy().a.sort() sorts in place; sorted(a) returns a new list.