Great question! To exit the Python interpreter, you have a couple of options:
- Type
exit()and press Enter:>>> exit() - Type
quit()and press Enter:>>> quit() - Use a keyboard shortcut: Press
Ctrl + D(on Linux/macOS) orCtrl + ZthenEnter(on Windows).
Any of these methods will bring you back to your regular terminal prompt.
Keep up the great work! Let me know if anything else comes up.