
출력 파이썬 코드, print와 pprintprint()는 한 줄로 출력하고, pprint.pprint()는 중첩 구조를 보기 쉽게 들여쓰기하여 출력합니다. import pprintcomplicated = ['spam', (1, 2, 3), ('ham', 'egg', ('ab', 'cd', ('abc', 'def')))]complicated = complicated * 3print(complicated)pprint.pprint(complicated)코드 설명:리스트 complicated 생성:문자열, 튜플, 중첩 튜플로 구성된 복잡한 구조입니다.['spam', (1, 2, 3), ('ham', 'egg', ('ab', 'cd', ('abc', 'def')))]곱셈 연산 * 3:리스트 complicated..