--- id: python-output title: "Python Output" category: "Programming_Language" status: "draft" verification_status: "conceptual" canonical_id: "" aliases: ["Python Print", "print() function", "파이썬 출력"] duplicate_of: "" source_trust_level: "B" confidence_score: 0.9 created_at: 2026-07-04 updated_at: 2026-07-04 review_reason: "" merge_history: [] tags: ["python", "programming", "w3schools", "print", "output"] raw_sources: ["https://www.w3schools.com/python/python_output.asp"] applied_in: [] github_commit: "" --- # [[Python Output]] ## 🎯 한 줄 통찰 (One-line insight) print() displays text or values and ends with a newline by default, but the `end` parameter lets you override that to print on the same line. [S1] ## 🧠 핵심 개념 (Core concepts) - **print() function** — displays text or output values; can be called as many times as needed. [S1] - **New line by default** — each print() call ends with a newline. [S1] - **Quoting required** — text must be inside quotes, either `"` or `'`; unquoted text raises a syntax error. [S1] - **`end` parameter** — overrides the default trailing newline, e.g. `end=" "` to keep printing on the same line. [S1] ## 📖 세부 내용 (Details) - Basic print: `print("Hello World!")`. [S1] - Either quote style works: `print("This will work!")` and `print('This will also work!')`. [S1] - Print without a new line: `print("Hello World!", end=" ")` followed by another print continues on the same line. [S1] ## ⚖️ 모순 및 업데이트 (Contradictions & updates) 소스에서 모순되는 정보는 발견되지 않음. ## 🛠️ 적용 사례 (Applied in summary) 현재 발견된 실제 적용 사례가 없습니다 — 이후 모든 예제의 출력 확인에 반복적으로 사용되는 가장 기본적인 함수다. [S1] ## 💻 코드 패턴 (Code patterns) Print without a trailing newline (Python): ```python print("Hello World!", end=" ") print("I will print on the same line.") ``` ## ✅ 검증 상태 및 신뢰도 - **상태:** draft - **검증 단계:** conceptual - **출처 신뢰도:** B (W3Schools — widely used educational reference, not a primary standards body) - **신뢰 점수:** 0.90 - **중복 검사 결과:** 신규 생성 (New discovery) ## 🔗 지식 그래프 (Knowledge Graph) - **상위/루트:** [[Python Tutorial]] - **관련 개념:** [[Python Print Numbers]], [[Python Strings]], [[Python Variables Output]] - **참조 맥락:** 모든 코드 예제의 결과 확인에 쓰이는 가장 기본적인 함수. ## 📚 출처 (Sources) - [S1] W3Schools — Python Output / Print — https://www.w3schools.com/python/python_output.asp ## 📝 변경 이력 (Change history) - 2026-07-04: Initial draft synthesized from the W3Schools "Python Output / Print" page (Astra wiki-curation, P-Reinforce v3.1 format).