안녕하세요. 궁금증연구소입니다. 오늘 포스팅 주제는 "파이썬 and & 차이점"입니다. 파이썬으로 유명한 자료구조인 heap을 구현해보았습니다. heap 구현 중에 자꾸 out of index 오류가 발생하여 원인을 파악하던 중, 파이썬에서는 논리 연산자 기호가 &가 아니라 영문 and라는 것을 알게 되었습니다. def heapify(tree: list, root_index: int, tree_size : int) : left_child_index = root_index*2 right_child_index = root_index*2 +1 max_index = root_index if 0 < left_child_index < tree_size & tree[left_child_index] > tree[max_index] : max_index = left_child_index if 0 &l