One Animation Logo

REPOS

APIDOCS

mymath.arithmetics.addsub

Contains the class AddSub

Module Contents

Classes

AddSub

Collection of subtraction and addition operations

class mymath.arithmetics.addsub.AddSub

Collection of subtraction and addition operations

This is the __init__ function

static add(x, y)

This module adds two numbers

Parameters
  • x (int) – first number

  • y (int) – second number

Returns

sum of two numbers

static subtract(x, y)

This module subtracts two numbers

Parameters
  • x (int) – first number

  • y (int) – second number

Returns

difference between the two numbers