Variables inside and outside of a class __init__() function
I noticed that in Python, people initialize their class attributes in two different ways.
The first way is like this:
__element1 = 123
__element2 = "this is Africa"
#pass or something else
The other style looks like:
self.__element1 = 123
self.__element2 = "this is Africa"
Which is the correct way to initialize class attributes?