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
os
.
getcwd
(
)
Examples
Python 3.13
>>
>
import
os
>>
>
os
.
getcwd
(
)
'/home/user'