Real Python
  • Start Here
  • Learn Python
    Python Tutorials →
    In-depth articles and video courses
    Learning Paths →
    Guided study plans for accelerated learning
    Quizzes & Exercises →
    Check your learning progress
    Browse Topics →
    Focus on a specific area or skill level
    Community Chat →
    Learn with other Pythonistas
    Office Hours →
    Live Q&A calls with Python experts
    Podcast →
    Hear what’s new in the world of Python
    Books →
    Round out your knowledge and learn offline
    Reference →
    Concise definitions for common Python terms
    Code Mentor →Beta
    Personalized code assistance & learning tools
    Unlock All Content →
  • More
    Learner Stories Python Newsletter Python Job Board Meet the Team Become a Tutorial Writer Become a Video Instructor
  • Search
/
  • Join
  • Sign‑In

Single and Double Underscore Naming Conventions in Python (Quiz)

Steven Loyens
Single and Double Underscore Naming Conventions in Python Steven Loyens 06:00
Recommended Tutorial Course Slides (.pdf) Sample Code (.zip) Ask a Question
  • Contents
  • Discussion

Become a Member to take the quiz.

Become a Member to join the conversation.

Course Contents

Overview
112%
  • Naming Conventions & Interfaces
  • Single and Double Underscore Naming Conventions in Python (Overview) 02:27
  • Following Naming Conventions 08:45
  • Understanding Public & Non-Public Interfaces 07:17
  • Exploring an Interface Example 02:21
  • Leading Underscores
  • Surveying Examples 02:00
  • Studying an Internal Constant 03:04
  • Creating a Helper Function 06:28
  • Avoiding a Blunder 02:14
  • Counting With a Variable 04:39
  • Moving Up to the Module 05:07
  • Creating a Package 06:39
  • Discussing Class Objects 06:21
  • Summarizing Examples 03:56
  • Importing With a Wildcard 02:55
  • Name Mangling, Special Methods, Pitfalls, & Other Uses
  • Mangling Member Names 07:11
  • Learning About Dunder Methods 07:48
  • Avoiding Conflicts 04:02
  • Inspecting Other Uses 07:29
  • Reviewing What You've Learned
  • Single and Double Underscore Naming Conventions in Python (Quiz) 06:00
  • Single and Double Underscore Naming Conventions in Python (Summary) 00:51

© 2012–2025 Real Python ⋅ Privacy Policy