• 코드:
​x
 
1
list1 = [1, 2, 3, 4, 5]
2
​
3
copy = list1[:]
4
copy.append(6)
5
​
6
print(copy)
7
print(list1)
8
​
표준입력 & 실행옵션