What is th ...
Site Language: English
Terms and Conditions
What is the purpose of a single underscore _ in Python variables name?
It indicates that variable is immutable
It raises a flag to other developers that this variable is important
It indicates that variable is of complex data type
It indicates that this variable is always passed by reference
It makes variable protected in a sense of many programming languages
Single underscore in variable name is an analogue of making variable “protected” by analogy with many other programming languages. Such variables are not imported when “from my_module import *” is used
Login to learn Python
Read more about
What is a correct term for the following piece of Python syntax: 3 + 4...
What gets printed: a = b = [1, 2, 3] b = 4 print(a) ...
Is it possible to link a Python program to code written in C?...
What will the output of the following statement be? print "%s is awes...
In a Python 2 new-style class declared as Child(Base), what is the correc...
True or False: Python packages can be imported from inside a Zip file....
Sign Up Now
Subscribe for future quizzes