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
Why does the name of local variables start with an underscore discouraged?
Home
Python
Why does the name of local variables start with an underscore discouraged?
0
votes
asked
Jan 18, 2021
in
Python
by
SakshiSharma
Why does the name of local variables start with an underscore discouraged?
i) To identify the variable
ii) It confuses the interpreter
iii) It indicates a private variable of a class
iv) None of these
#python-underscore
Python-questions-answers
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Jan 18, 2021
by
SakshiSharma
iii) It indicates a private variable of a class
Related questions
0
votes
Q: While operating on Tensors a function name followed by underscore means ___________.
asked
Jan 17, 2021
in
Python
by
SakshiSharma
#underscore
#tensors-function
Python-questions-answers
0
votes
Q: Mention what are the rules for local and global variables in Python?
asked
Jan 1, 2021
in
Python
by
SakshiSharma
#python-global-variable
local-variable
Python-questions-answers
0
votes
Q: What are the rules for local and global variables in Python?
asked
Jun 26, 2020
in
Python
by
AdilsonLima
#python
Python-questions-answers
0
votes
Q: What are the global and local variables in Python?
asked
May 16, 2020
in
Python
by
Robindeniel
#python-global-variable
#python-local-variable
Python-questions-answers
0
votes
Q: Does The Functions Help() And Dir() List The Names Of All The Built_in Functions And Variables in Python? If No, How Would You List Them in Python?
asked
Jun 28, 2020
in
Python
by
Robindeniel
#python-help
#python-dir
#python-directory
#dir-python
#python-built-in-functions
#python-variables
Python-questions-answers
0
votes
Q: Can you please help to clarify what does the __ Name __ do in Python Language?
asked
Aug 29, 2020
in
Python
by
Robindeniel
#python-_name_
Python-questions-answers
0
votes
Q: What Does The __ Name __ Do In Python?
asked
Dec 14, 2019
in
Python
by
sharadyadav1986
#python-name
Python-questions-answers
+1
vote
Q: How to select columns in pandas and add them to a new dataframe? What if there are two columns with the same name?
asked
Feb 14, 2021
in
Python
by
SakshiSharma
#python-columns
python-dataframe
dataframes
python
Python-questions-answers
0
votes
Q: To start Python from the command prompt, use the command ______
asked
Feb 11, 2020
in
Python
by
rahuljain1
#run-python
Python-questions-answers
0
votes
Q: Why lambda forms in python does not have statements?
asked
Dec 31, 2020
in
Python
by
SakshiSharma
#lambda-forms
#lambda-statements
Python-questions-answers
...