What is th ...
Site Language: English
Terms and Conditions
What is the purpose of double underscore __ in Python variable name?
It is the same as single underscore
There is no sense
Interpreter makes variable class-private by modifying its name
This variable is a singleton
Variables whose name begins with double underscore are treated by interpreter as class private. Internally they will be renamed to _ClassName__VariableName to prevent unwanted access to them by other engineers
Login to learn Python
Read more about
Which character do you use instead of " * " for importing all the names of a pac...
How would you change declaration of function foo to ensure that a functi...
What is the largest Tuple that Scala supports?...
Can methods, taking one argument, be used with infix syntax?...
What is a higher-order function?...
Scala's Unit roughly corresponds to which Java type?...
Sign Up Now
Subscribe for future quizzes