Hi everyone! In this post I am going to teach you about the self variable in python. I have seen many beginners struggling to grasp the concept of self variable. If you are one of them then this post is for you. So lets start by making a class involving the self variable. A simple class So here is our class: class Restaurant(object): bankrupt = False def open_branch(self): if not self.