Home > How Do I Use The Cd Command In Python?
Question

How do I use the cd command in Python?

Answers
03/21/2022
Fanchette Grennay

Hello Francisco if by cd you mean browse folders, just keep in mind that where your .py program is located is your current position.

To access a file inside a folder that is in the current position:
folder/file name

To access a file outside the folder of the current position:
../file

To access a file outside the folder of the current position:
../file

To access a file outside the folder of the current position:
../file

Reply
How and what do I need to clone my hard disk in Ubuntu? :: How can I remove the Windows 10 'Activate Windows go to settings to activate Windows' watermark on a PC?
Useful Links