Public attributes are those that can be accessed inside the class and outside the class.
Technically in Python, all methods and properties in a class are publicly available by default. If we want to suggest that a method should not be used publicly, we have to declare it as private explicitly.
Below is an example to implement public attributes: