iterable1 Python의 Iterable과 Iterator 우리가 자주 사용하는 리스트(list), 딕셔너리(dict), 집합(set) 같은 객체들은 모두 반복 가능한 객체이다. 이들 객체는 for문이나 map 함수와 함께 사용할 수 있다.그렇다면 반복 가능한 객체란 도대체 무엇일까? 그리고 이 반복 가능한 객체는 어떻게 동작하는 걸까? Iterable(반복 가능한 객체)란?Python 공식 문서에서는 Iterable을 다음과 같이 정의하고 있다.An iterable is an object capable of returning its members one at a time. Examples of iterables include all sequence types (such as list, str, and tuple) and some non-sequence type.. 2025. 3. 13. 이전 1 다음