os
The module needs to be imported, and then just one line does the rest.
import os
print (os.path.expanduser('~'))
The results are as follows:
/home/runner
robort - 2022-08-29 15:53:32
os
The module needs to be imported, and then just one line does the rest.
import os
print (os.path.expanduser('~'))
The results are as follows:
/home/runner
Top Interviews