how to declare private attribute in python

class Base:
	def __init__(self):
    	self.__private_attribute = 2 #two underscores before attribute declare it as private

Here is what the above code is Doing:
1. The class Base has a private attribute called __private_attribute.
2. The class Base has a constructor that initializes the private attribute to 2.
3. The class Base has no public methods.