https://docs.python.org/3/tutorial/datastructures.html#looping-techniques

dict는 items()로 key, value
시퀀스 타입은 enumerate()로 인덱스와 값을

2개 이상의 시퀀스를 반복하려면 zip()으로 쌍을 사용

questions = ['name', 'quest', 'favorite color']
answers = ['lancelot', 'the holy grail', 'blue']
for q, a in zip(questions, answers):
    print('What is your {0}?  It is {1}.'.format(q, a))

시퀀스를 역방향으로 하려면 reversed()

정렬된 새로운 목록을 반환하는 함수 sorted()

← python 3.14으로