codeforces/560A_currency.py
def calculate(self):
        """ Main calcualtion function of the class """

        result = 1
        for n in self.nums:
            if n == 1:
                result = -1
                break

        return str(result)
 Main calcualtion function of the class 
Main calcualtion function of the class
Main calcualtion function of the class
def calculate(self):
        result = 1
        for n in self.nums:
            if n == 1:
                result = -1
                break
        return str(result)
def calculate ( self ) : result = 1 for n in self . nums : if n == 1 : result = - 1 break return str ( result )
Main calcualtion function of the class
Main calcualtion function of the class
""" Main calcualtion function of the class """
self