Computer Science, asked by fareethkhan9485, 10 months ago

How to get the home directory in Python?

Answers

Answered by sahilchatterjee001
0

To get homedir u can use this

pathlib.Path.home():

from pathlib import Path

home=str(Path.home())

Similar questions