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 Does The “Self” Keyword Do?
Home
Python
What Does The “Self” Keyword Do?
0
votes
asked
Dec 22, 2019
in
Python
by
rajeshsharma
What Does The “Self” Keyword Do?
#python-keyword
Python-questions-answers
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Dec 22, 2019
by
sharadyadav1986
The self is a Python keyword which represents a variable that holds the instance of an object.
In almost, all the object-oriented languages, it is passed to the methods as a hidden parameter.
Your comment on this answer:
Email me at this address if a comment is added after mine:
Email me if a comment is added after mine
Privacy: Your email address will only be used for sending these notifications.
Related questions
0
votes
Q: What Does The Yield Keyword Do In Python?
asked
Dec 22, 2019
in
Python
by
rajeshsharma
#python-keyword
Python-questions-answers
0
votes
Q: Which of the following is not a keyword in Python language?
asked
Jan 18, 2021
in
Python
by
SakshiSharma
#python-keyword
Python-questions-answers
0
votes
Q: What does the “yield” keyword do?
asked
Jan 9, 2021
in
Python
by
SakshiSharma
what
does
the
yield
keyword
do
python
iterator
generator
coroutine
Python-questions-answers
0
votes
Q: What is the purpose of using self.id in tests, while working with unittest?
asked
Jun 30, 2020
in
Python
by
GeorgeBell
#python
Python-questions-answers
0
votes
Q: What is self variable in Python?
asked
Jun 11, 2020
in
Python
by
Robindeniel
#python-self-variables
#self-variable-python
Python-questions-answers
0
votes
Q: Define self in Python?
asked
May 17, 2020
in
Python
by
SakshiSharma
#python-self
#self-python
Python-questions-answers
+1
vote
Q: A function in Python begins with which keyword?
asked
Jan 30, 2022
in
Python
by
sharadyadav1986
python-function
Python-questions-answers
0
votes
Q: Which of the following keywords is not reversed keyword in python?
asked
Sep 29, 2021
in
Python
by
john ganales
reversed-keyword
Python-questions-answers
0
votes
Q: Can you please explain what is the return keyword used for in Python Language?
asked
Aug 29, 2020
in
Python
by
Robindeniel
#return-keyword
#python-return-keyword
Python-questions-answers
0
votes
Q: What Is The Return Keyword Used For In Python?
asked
Dec 14, 2019
in
Python
by
sharadyadav1986
#python-return-condition
Python-questions-answers
...