Is it possible to install software using python.py scripts? I wanted the python script to do a sudo command on the Raspberry Pi. I want the python script to be able to update or install a software in the Raspberry Pi just by running the script.
def index(): return sudo apt-get update index()
where in this case the Raspberry Pi will update when I run the script above.