₦airaland Forum

Welcome, Guest: Register • Login • With Google • Trending • Recent • New

Stats: 3,344,742 members, 8,513,477 topics. Date: Thursday, 05 November 2026 at 05:52 AM

Toggle theme

What Are Double Underscores Called In Python? - Programming - Nairaland

Nairaland Forum › Science/Technology › Programming › What Are Double Underscores Called In Python? (926 Views)

1 Reply

What Are Double Underscores Called In Python? by classicdude1(op): 4:02pm On Nov 05, 2017
Double underscores are very popular in Python.

Some special Class methods such as init and str start and end with double underscores.

You can make a class attribute private by adding double underscores as a prefix after self.

Funny enough, double underscores have a weird name known as dunder

Now you know what double underscores are called in the Python community.

for more free and thorough comprehensive Python tutorial click here.
1 Reply

Tutorial: Object Oriented Programming Paradigm For Beginners in Python • Who Wants To Learn Programming In Python Easily Without Stress? READ THIS • What No One Tells You About Coding In Python: Eye-opening! • 2 • 3 • 4

Hurry And Register • Best Android Apps 2018 • Urgent!! Looking For Abuja Based Android Developer Expert.all PAID TO DUBAI