Regarding implementation of functions

What is the siginificance __ using both sides of the function name? Like when we use it one side, it becomes private method of the class, what is the two sided __ used for?

They are called Dunder(double under)/Magic methods in python. They are special method types. You can find about them here:

Special Methods in Python

Thank you so much for the doubt