my_test_package package¶
Submodules¶
my_test_package.mymodule module¶
A simple module with trivial functions
-
my_test_package.mymodule.add(a, b)[source]¶ Adds two numbers
Parameters: - a (int,float,...) – number
- b (int,float,...) – other number
>>> add(1,2) 3 >>> add(0, 0) 0 >>> add(0.3, 0.7) 1.0
-
my_test_package.mymodule.multiplication_table(n)[source]¶ Makes a multiplication table for n, n times x for x up to n
Parameters: n (int) – the number Returns: the multiplication table Return type: str
-
my_test_package.mymodule.multiply(a, b)[source]¶ Multiply two numbers, a and b
A simple wrapper around the python * operator. Calls a * b. Multiplying two ints will return an int, otherwise float.
Parameters: - a (int,float,...) – the first number
- b (int,float,...) – the second mumber
Returns: a times b
Return type: int,float,...
>>> multiply(5, 5) 25 >>> multiply(0.2,10) 2.0