Web Analytics

Python os.getcwd() Method

OS & Systemโ€ขDirectory

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