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 SystemExit with the specified exit code.

Printed 2026-06-28.

(echo:: @ )