File: functions.py

package info (click to toggle)
sphinx-automodapi 0.22.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,180 kB
  • sloc: python: 1,769; makefile: 196
file content (26 lines) | stat: -rw-r--r-- 314 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
"""
A collection of useful functions
"""

__all__ = ['add', 'subtract', 'multiply']


def add(a, b):
    """
    Add two numbers
    """
    return a + b


def subtract(a, b):
    """
    Subtract two numbers
    """
    return a - b


def multiply(c, d):
    """
    Multiply two numbers
    """
    return c * d