Category: Python

공유와 독립 복사를 비교하는 데이터 용기

Python Tutorial / Understand Variable Scope, Aliasing and Mutable Objects

Separate scope, rebinding and mutation; compare aliases with shallow copies and define whether functions preserve or modify their inputs.

여러 항목을 묶었다가 펼쳐 담는 주머니와 상자

Python Tutorial / Collect and Unpack Arguments with *args and **kwargs

Read star syntax in definitions and calls, collect flexible arguments and avoid duplicate keywords, accidental string expansion and unchecked option forwarding.

입력 조절 장치가 연결된 함수 처리 장치

Python Tutorial / Use Positional Arguments, Keywords and Defaults

Write readable positional and keyword calls, use keyword-only options and prevent shared mutable defaults while documenting intentional input mutation.

입력을 받아 처리한 결과를 내는 재사용 장치

Python Tutorial / Define Functions and Return Values

Define functions with clear parameters and return contracts, separate computation from printing and test call order, arguments and missing return values.

여러 기록을 모아 하나의 합계를 만드는 흐름

Python Tutorial / Practice Conditions and Loops with a Score Summary

Combine validation, branching and iteration in a complete score-summary program, with visible rejected counts and explicit empty-input and boundary checks.

여러 도형을 선별해 새 모음으로 만드는 장치

Python Tutorial / Build List, Dictionary and Set Comprehensions

Distinguish filters from conditional expressions, build list/dictionary/set comprehensions and preserve the correct meaning of duplicates and empty results.

반복 경로와 별도 출구가 있는 원형 통로

Python Tutorial / Control Repetition with while, break and continue

Build a terminating input loop, follow break and continue precisely and test empty input, zero, negative values and quit commands.

여러 처리 단계를 반복 연결한 순환 흐름

Python Tutorial / Loop with for, range, enumerate and zip

Choose direct iteration, ranges, counters and paired collections, and use strict zip and boundary checks to avoid silently skipped data.

조건에 따라 여러 경로로 갈라지는 화살표

Python Tutorial / Choose Execution Paths with if, elif and else

Design mutually exclusive Python branches, apply consistent indentation and test boundaries and variable assignments across every execution path.

두 입력을 조합해 결과를 내는 논리 장치

Python Tutorial / Compare Values and Combine Boolean Conditions

Understand comparison chains, truthiness, short-circuit evaluation and operand-returning and/or expressions without losing valid zero or empty values.