copyright() Print copyright

Last updated: 2026-09-22

copyright() Print copyright

copyright() prints Python's copyright notice (in the interactive interpreter).

CategoryBuilt-in Functions
KindBuilt-in Function
Python Versionall

📝 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
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.
Web-Tutorial.com

Web-Tutorial Tech Team

A team of developers maintaining programming tutorials. Each tutorial is written and reviewed by developers with expertise in that field. We work to keep our content accurate and reliable — if you spot an issue, please let us know.

100%

🙏 帮我们做得更好

我们是刚上线的编程教程站,几个人的小团队,精力有限。页面虽经检查,难免还有疏漏——链接失效、排版错乱、内容有误、语言生硬……

如果您发现了,麻烦告诉我们,我们会在收到反馈后第一时间进行修复,再次感谢您的光临 🙏