vs
Dictionary는 Key : Value 값이 있다.vs
Dictionary : (Key : immutable), (Value : mutable)vs
Tuple 은 () 사용vs
Tuple : immutablemutable이란 값이 변한다는 뜻이고, immutable은 변하지 않는다는 뜻이다.
list : mutable
x=[1,2] y=x y.append(3) print (x) print (y)
[1, 2, 3]
[1, 2, 3]
x=(1,2) y=x y+=(3,) print (x) print (y)
(1, 2)
(1, 2, 3)