#python #anaconda #jupyter-notebook #visual-code #html #css #javascript #http 제목[re][re]Step_14 dictionary 멤버 갯수 unhashable type: 'list'2020-05-12 16:20작성자unhashable그러면 튜플로는 어떻게 바꿔야할까요?dictionary2 = {'red': [1,2], 'green': 1, 'blue': 2}def count_value(dictionary): num=set() for i in dictionary: a=tuple(dictionary[i]) num.add(a) count=len(num) return countprint(count_value(dictionary2))int' object is not iterable 에러가 뜹니다. value를 리스트에 담고 그 리스트를 튜플로 변환해야하나요? 목록수정삭제답변글쓰기 댓글 [0] 댓글작성자(*)비밀번호(*)내용(*) 댓글 등록 더보기이전[re]Step_14 dictionary 멤버 갯수 unhashable type: 'list'박규민 조교2020-05-12다음step 13 질문zxc2020-05-12 Powered by MangBoard | 워드프레스 쇼핑몰 망보드