Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,154,734 members, 7,824,081 topics. Date: Friday, 10 May 2024 at 10:11 PM

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

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

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)

(1) (Reply)

What Are Double Underscores Called In Python? by classicdude1(m): 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)

Self Development Needs / 5 Important Requirements For Great Web Design / Google Introduce The New Adsense Auto Ads (how It Works)

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 7
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.