Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
What's the cycle to get the home index utilizing '~' in Python Language?
Home
Python
What's the cycle to get the home index utilizing '~' in Python Language?
0
votes
asked
Aug 29, 2020
in
Python
by
Robindeniel
What's the cycle to get the home index utilizing '~' in Python Language?
#python-utilization
Python-questions-answers
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Aug 29, 2020
by
sharadyadav1986
You have to import the os module, and afterward only a solitary line would wrap up.
import os
print (os.path.expanduser('~'))
Yield:
/home/sprinter
Related questions
0
votes
Q: When is the Python Language decorator utilized?
asked
Aug 29, 2020
in
Python
by
Robindeniel
#python-language-decorator
#python-utilization
Python-questions-answers
0
votes
Q: What’s The Process To Get The Home Directory Using ‘~’ In Python?
asked
Dec 22, 2019
in
Python
by
rajeshsharma
#python-directory
Python-questions-answers
0
votes
Q: Can you please clarify what is Python Language, Can you please help to clarify what are the advantages of utilizing it, and what do you comprehend of PEP 8?
asked
Aug 29, 2020
in
Python
by
Robindeniel
#python-language
#pep-8
#advantage-of-python
#python-benefits
Python-questions-answers
0
votes
Q: Write a reg articulation that affirms an email id utilizing the Python Language reg articulation module "re"?
asked
Aug 29, 2020
in
Python
by
Robindeniel
#python-utilizing
Python-questions-answers
0
votes
Q: Can you please explain what is the index in Python Language?
asked
Aug 29, 2020
in
Python
by
Robindeniel
#python-language-index
Python-questions-answers
0
votes
Q: How to find the index of an element in a list python?
asked
Jun 12, 2020
in
Python
by
Robindeniel
#python-index
#python-element
Python-questions-answers
0
votes
Q: How can you insert an element at a given index in Python?
asked
Feb 11, 2021
in
Python
by
SakshiSharma
#python-index
index
python
python-element
Python-questions-answers
0
votes
Q: What is negative index in Python?
asked
Jan 1, 2021
in
Python
by
SakshiSharma
#python-negative-index
Python-questions-answers
0
votes
Q: Python error: string index out of range python
asked
Nov 15, 2020
in
Python
by
rajeshsharma
#python-error
#python-string
#python-string-index
#string-index
Python-questions-answers
0
votes
Q: What Is A “negative Index” in Python?
asked
Jun 28, 2020
in
Python
by
Robindeniel
#python-negative-index
#negative-index-python
Python-questions-answers
...