New GitHub issue #102929 from GauravN123:<br>
<hr>
<pre>
When you call code.interact() in Python, you are starting an interactive console that allows you to execute Python code and inspect variables in the current context.
If you call the exit() or quit() functions within the code.interact() console, it will exit not just the interactive console, but the entire Python process that launched it. This is because exit() and quit() are built-in functions that cause the Python interpreter to exit.
If you want to exit just the interactive console and return to the original context, you can use the CTRL+D keyboard shortcut or call raise SystemExit instead.
</pre>
<hr>
<a href="https://github.com/python/cpython/issues/102929">View on GitHub</a>
<p>Labels: type-feature</p>
<p>Assignee: </p>