chdir python code example
Example 1: chr() python
The chr() method returns a string representing
a character whose Unicode code point is an integer.
print(chr(71), chr(101),
chr(101), chr(107),
chr(115), chr(32),
chr(102), chr(111),
chr(114),chr(32),
chr(71), chr(101),
chr(101), chr(107),
chr(115))
-> G e e k s f o r G e e k s
Example 2: change directory in python script
os.chdir(os.path.dirname(__file__))
Example 3: os.chdir python
os.chdir("directory name")
Example 4: how to change os path in python
os.chdir(path)