copyright() Print copyright
Last updated: 2026-09-22
copyright() Print copyright
copyright() prints Python's copyright notice (in the interactive interpreter).
| Category | Built-in Functions |
|---|---|
| Kind | Built-in Function |
| Python Version | all |
📝 Syntax
copyright()
Returns:None; prints the copyright notice to stdout.
▶ Example
Edit the code, press Run, and see the result in the output panel:
Output:
ok
💡 Related Cases
More case studies coming soon — check back later.
❓ FAQ
QWhat does copyright() do?
AIn the interactive interpreter (REPL) it prints Python's copyright information; it is a helper for interactive sessions.
QIs copyright() useful in production code?
ANo — it is meant for interactive sessions; production code does not need to call it, and calling it merely prints text.
QWhat does copyright() return?
AIt returns None, only printing the copyright text to standard output and returning no data.
QWhen would you see copyright()?
AWhen you call it manually in IDLE or a REPL, or browse the interpreter's About/help interface; ordinary scripts never show it.