Python os.getcwd() Method
The os.getcwd() method returns the current working directory.
Syntax
os.getcwd()
Return Value
A string representing the current directory.
Example
Output
Click Run to execute your code