ivanleoncz / Data-Capture-Challenge

Code challenge of obtaining statistical data from a list of numbers.
GNU General Public License v3.0
0 stars 0 forks source link

Action

Data-Capture-Challenge

Code challenge of obtaining statistical data from a list of numbers.

Requirements

Usage

>>> from main import DataCapture
>>> dc = DataCapture()
>>> dc.add(4)
>>> dc.add(1)
>>> dc.add(3)
>>> dc.add(1)
>>> dc.add(8)
>>> stats = dc.build_stats()
>>> stats.less(3)
[1, 1]
>>> stats.greater(1)
[3, 4, 8]
>>> stats.between(1, 3)
[1, 1, 3]

Running Tests

python tests.py