Built-in Constants — Python 3 documentation#quit
quit(code=None)
exit(code=None)Objects that when printed, print a message like “Use quit() or Ctrl-D (i.e. EOF) to exit”, and when accessed directly in the interactive interpreter or called as functions, raise
SystemExitwith the specified exit code.
Printed 2026-06-28.