Course
Simulator
More
Premium
Log in
Python Function Reference
Functions
os.getcwd
os.getcwd
Return a string representing the current working directory.
Python 3.13
1
os
.
getcwd
(
)
Examples
Python 3.13
1
2
import
os os
.
getcwd
(
)
'/home/user'