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

1 Answer

0 votes
by (271k points)

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

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


...