license() Display license
Last updated: 2026-09-22
license() Display license
license() displays the full Python license text in the interactive interpreter (paged).
| Category | Built-in Functions |
|---|---|
| Kind | Built-in Function |
| Python Version | all |
📝 Syntax
license()
Returns:None; displays the full license text (paged) in the interactive interpreter.
▶ Example
Edit the code, press Run, and see the result in the output panel:
Output:
license() called (simulated)
🏷️ Related Built-in Functions
💡 Related Cases
More case studies coming soon — check back later.
❓ FAQ
QWhat does license() do?
AIn the interactive interpreter it pages through the full Python license text — press Enter or Space to page, and q to quit.
QWhat happens if license() is called in a script?
AIt enters the paged display and blocks the script until paging finishes, so it usually should not be called in a script.
QDoes license() return a value?
ANo, it returns None and is only responsible for displaying text.
QWhat is the difference between copyright(), credits(), and license()?
AAll three are information-display tools for the interactive interpreter: copyright() shows copyright, credits() shows acknowledgements, and license() shows the full license text.