for example: I want to run a console program through python:
os.system('sudo apt-get upgrade') and I will be asked for a password. How to solve this problem with a password. For example:
import os comand = 'sudo apt-get upgrade' pass = 'pass' continue on
And yes, if you offer to do everything through writing bash code, then write how to do this so that the program doesn't run on python and python does not slow down (so that the program does not wait and the GUI does not hang)