I've been looking around the web and I found no articles saying how to close a terminal using Python code.
This is my code:
if optionInput == "6":
exit()
which quits the script, but does not close the terminal the script was running within.
I want it to close the terminal in which the script runs instead of just ending the terminal process which is running the Python script.
Is there any way to do that?