How to change directory in my terminal using python

250 views Asked by At

The problem I have is that when I am in my terminal and I am at the base. I want to for instance change my directory to downloads I was wondering how I would do that because then after I would change my directory I would be able to access certain files in download and tell the computer that I want all the information in this file so my code can run properly. Thank you

1

There are 1 answers

1
Anders Haarberg Eriksen On

You could try to use os;

os.system('cd ./Downloads')