Welcome to this demo/test Python project!¶
Indices and tables¶
This is a demo/test Python project
- exception mylibrary.LibraryError(message=None)¶
Base exception for operations
- Parameters:
message (string) – a general error message
- class mylibrary.MyLibrary¶
Python test interface
- check_operands(a: int, b: int) bool¶
Check the operands for being integer values.
- Parameters:
a (int) – first operand
b (int) – second operand
- Returns:
True if both operands are integers
- Return type:
bool
- operation_add(a: int, b: int) int¶
Add two integer values.
- Parameters:
a (int) – first operand
b (int) – second operand
- Returns:
the addition result
- Return type:
int
- operation_divide(a: int, b: int) float¶
Divide two integer values.
- Parameters:
a (int) – first operand
b (int) – second operand
- Returns:
the division result
- Return type:
int
- operation_multiply(a: int, b: int) int¶
Multiply two integer values.
- Parameters:
a (int) – first operand
b (int) – second operand
- Returns:
the multiplication result
- Return type:
int
- operation_subtract(a: int, b: int) int¶
Subtract two integer values.
- Parameters:
a (int) – first operand
b (int) – second operand
- Returns:
the subtraction result
- Return type:
int