Featured image of post [Python Cheatsheet] 04. Collections - list/tuple/set 패턴

[Python Cheatsheet] 04. Collections - list/tuple/set 패턴

list/tuple/set을 빠르게 선택하고 다루기 위한 치트시트입니다. 정렬·복사·언패킹, set 연산(교집합/합집합), 멤버십 성능 감각, 얕은 복사 함정까지 최소 예제로 정리합니다.

Featured image of post [Python Cheatsheet] 06. Control Flow - if/for/while 패턴

[Python Cheatsheet] 06. Control Flow - if/for/while 패턴

if/for/while 제어 흐름을 빠르게 쓰기 위한 치트시트입니다. truthy/falsy, enumerate/zip, loop-else, break/continue, match-case(선택)까지 실무에서 자주 쓰는 패턴과 함정을 최소 예제로 정리합니다.

Featured image of post [Python Cheatsheet] 07. Functions - 인자/리턴/*args/**kwargs

[Python Cheatsheet] 07. Functions - 인자/리턴/*args/**kwargs

함수 정의와 인자 패턴을 빠르게 쓰기 위한 치트시트입니다. 기본값 인자의 함정, *args/**kwargs, keyword-only/positional-only, 반환값 언패킹, 어노테이션/독스트링 기본까지 실전 예제로 정리합니다.

Featured image of post [Python Cheatsheet] 10. Comprehensions & Generators

[Python Cheatsheet] 10. Comprehensions & Generators

컴프리헨션과 제너레이터를 빠르게 선택하기 위한 치트시트입니다. list/dict/set comprehension, generator expression, yield, next, 메모리 관점에서의 선택 기준과 대표 함정을 최소 예제로 정리합니다.

Featured image of post [Python Cheatsheet] 11. Errors & Exceptions - try/raise 패턴

[Python Cheatsheet] 11. Errors & Exceptions - try/raise 패턴

예외 처리를 빠르게 설계/작성하기 위한 치트시트입니다. try/except/else/finally, raise/raise from, 예외 계층과 커스텀 예외, 자원 정리(with)와 로깅 연결까지 실전 패턴을 정리합니다.

Featured image of post [Python Cheatsheet] 13. Files - pathlib/encoding/open 패턴

[Python Cheatsheet] 13. Files - pathlib/encoding/open 패턴

파일 입출력과 경로 처리를 빠르게 하기 위한 치트시트입니다. pathlib로 경로 다루기, open()의 encoding/newline, 텍스트·바이너리 모드, 안전한 읽기/쓰기(with) 패턴과 흔한 함정을 최소 예제로 정리합니다.