OnlinePython

Variable Visibility Exercise

Question 1 of 4

Which visibility level is indicated by a single underscore prefix in Python?

class Example:
    def __init__(self):
        self.public = "accessible"
        self._protected = "internal use"
        self.__private = "hidden"