순식간에 평일이 지나가고 주말이다. 마라톤을 생각하며 토요일, 일요일 적당한 휴식과 재정비를 해야겠다.
# mutable 예
a = { {1, 3}: 5, {3,5}: 3} #set 사용 에러
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: unhashable type: 'set'
a = {[1,3]: 5, [3,5]: 3} #list 사용 에러
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: unhashable type: 'list'
a = { {"a":1}: 5, "abc": 3} #dict 사용 에러
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: unhashable type: 'dict'
a = [1, 3, 5, 7] # list
b = (1, 2, 3, 5) # tuple![]
(https://images.velog.io/images/soohun9909/post/2b83bdf0-b195-4e04-8308-5c1cfd66457a/datatype.png)