getting the current working directory in python

Solutions on MaxInterview for getting the current working directory in python by the best coders in the world

showing results for - "getting the current working directory in python"
Naja
22 Apr 2019
1# Python program get current working directory using os.getcwd()
2		
3# importing os module
4import os
5	
6# Get the current directory path
7current_directory = os.getcwd()
8	
9# Print the current working directory
10print("Current working directory:", current_directory)
11