Saturday, February 26, 2022

[SOLVED] Is there a python code to completely exit the termux terminal?

Issue

before this only exits the script at hand and not the whole terminal. I tried:

import os
os.system('exit')

and that only exits the script. Any Idea how i exit the whole terminal?


Solution

yes if you want to exit python type exit() if you want to exit terminal type exit



Answered By - Kingslayer47
Answer Checked By - David Marino (WPSolving Volunteer)