I have a python script that I made to update and upgrade my Linux system, it is written in python but after I tell it to update it prompts me to enter a hidden password and I was wondering if there is a way to get Python to enter the hidden password for me. This is my code its simple and works I just need to know if there is a way to enter hidden passwords with python.
import os,sys
os.system("sudo apt-get update && sudo apt-get upgrade")