PYTHON

Single and Double Underscores in Python Names Quiz – Real Python

Interactive Quiz ⋅ 9 Questions
By Leodanis Pozo Ramos



In this quiz, you’ll test your understanding of Single and Double Underscores in Python Names.

By working through this quiz, you’ll revisit Python naming conventions that rely on using underscores (_), how to differentiate public and non-public names by using a single leading underscore, how to use double leading underscores to leverage name mangling in Python classes, and other common uses of underscores in Python names.

The quiz contains 9 questions and there is no time limit. You’ll get 1 point for each correct answer. At the end of the quiz, you’ll receive a total score. The maximum score is 100%. Good luck!

« Browse All Python Quizzes



Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button