Now you know about some important Python naming conventions that rely on using the underscore character (_
). You’ve learned how to differentiate between public and non-public names in Python code, write safe classes for subclassing purposes, and avoid name clashes in your classes.
In this video course, you’ve:
- Learned a few Python naming conventions that rely on using underscores (
_
) - Differentiated public vs non-public names using a single leading underscore
- Used double leading underscores to trigger name mangling in Python classes
- Explored other common uses cases of underscores in Python names
Congratulations, you made it to the end of the course! What’s your #1 takeaway or favorite thing you learned? How are you going to put your newfound skills to use? Leave a comment in the discussion section and let us know.