Question · Python course · Module 3: Object-Oriented Programming
Private Attributes
How do you mark an attribute as 'private' in Python?
Answer options
- private _name
- _name (convention) or __name (name mangling)
- #name
- protected name
You can check the correct answer by solving this task in the CodeWorlds game.