lucaskopelman lucaskopelman
  • 18-08-2019
  • Computers and Technology
contestada

How do I change directories in python to run a file?

How do I change directories in python to run a file class=

Respuesta :

BaileyOrion
BaileyOrion BaileyOrion
  • 18-08-2019

write the following at the top of your program:

import os

then write in your code:

os.chdir(path)

and where I've written path, write where you want to change to

Answer Link

Otras preguntas

Sketch the right triangle and find the length of the side not given. If necessary approximate the length to the nearest thousandth leg =8 ,leg=6
7,676 rounded to the hundred
Describe the life cycle of a brood x?
Yon buys tickets to a concert for himself and a friend. There is a tax of 6% on the price of the tickets and an additional booking fee of $20 for the transactio
The combination for a lock is a 3 digit number.the digits are the prime factors of 42 listed from least to greatest.what is the combination for the lock
What does mare nostrum mean, and why did the Romans use the term?
what happens to infrared radiation when it comes to contact wih a shiny suface
A particular plant root grows 1.5 inches per month. How many centimeters is the plant root growing per month? (1 inch = 2.54 centimeters).
The virginia colony was founded as a royal colony under the direct control of the king true or false
One problem that may result when a nation imports more than exports is? a)taxes on imports b)high unemployment c)falling government revenues d)low prices on imp