Final answer:
To exit interactive mode in Python, type 'exit()' or use 'Ctrl+D' (Linux/macOS) or 'Ctrl+Z' then Enter (Windows). This can vary if using an IDE, where closing the window usually works.
Step-by-step explanation:
To exit interactive mode in Python, you can type exit() and press enter, or you can use the keyboard shortcut which is typically Ctrl+D on Linux and macOS, or Ctrl+Z followed by Enter on Windows. If you are working in an integrated development environment (IDE) like PyCharm or Visual Studio Code, the method to exit might differ and can usually be done by closing the terminal or REPL window.