+2 votes
in Programming Languages by (14.7k points)
What is the equivalent of Linux command 'pwd' in Python to see the current working directory?

1 Answer

0 votes
by (25.6k points)

To get the current working directory/folder using Python, you need to use getcwd() function of os module.

>>> import os
>>> os.getcwd()

...