Sophie

Sophie

distrib > Mageia > 7 > armv7hl > by-pkgid > da3f2a4ce20b26cb5976aa965c74e071 > files > 2933

python2-twisted-19.2.0-1.mga7.armv7hl.rpm

# -*- test-case-name: calculus.test.test_base_2 -*-

from __future__ import division


class Calculation(object):
    def add(self, a, b):
        return a + b

    def subtract(self, a, b):
        return a - b

    def multiply(self, a, b):
        return a * b

    def divide(self, a, b):
        return a // b