How do you display the path to the current working directory in Python? (select two)

Questions & AnswersCategory: PythonHow do you display the path to the current working directory in Python? (select two)
Lokesh Kumar Staff asked 2 years ago

How do you display the path to the current working directory in Python? (select two)
 
a. from pathlib import Path
print(Path.cwd())
 
b. pwd
 
c. print(os.getcwd())
 
d. import os

print(os.getcwd())