codeforces/556A_zeroes.py
def calculate(self):
        """ Main calcualtion function of the class """
        result = 0
        for n in self.list:
            result += 1 if n else -1

        return str(abs(result))
 Main calcualtion function of the class 
Main calcualtion function of the class
Main calcualtion function of the class
def calculate(self):
        result = 0
        for n in self.list:
            result += 1 if n else -1
        return str(abs(result))
def calculate ( self ) : result = 0 for n in self . list : result += 1 if n else - 1 return str ( abs ( result ) )
Main calcualtion function of the class
Main calcualtion function of the class
""" Main calcualtion function of the class """
self