Asked • 06/21/19

What is the meaning of a single and a double underscore before an object name?

Can someone please explain the exact meaning of having leading underscores before an object's name in Python? Also, explain the difference between a single and a double leading underscore. Also, does that meaning stay the same whether the object in question is a variable, a function, a method, etc.?

1 Expert Answer

By:

Marissa S. answered • 07/04/19

Tutor
New to Wyzant

Python & C/C++ Tutor!

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.