/Andela-SLC-Day-3

Solutions to assignments for Andela Self Learning Clinic Day 3

Primary LanguagePython

Getting Started

You can start by cloning the project:

git clone https://github.com/patlub/Andel-SLC-Day-3.git

Prerequisites

Working installation of python 3. if you don't, you can refer to this Intall Python 3

Usage

max_min

import it first:

from Andela-SLC_Day-3.Max_min.find_max import find_max_min

from Andela-SLC_Day-3.Words.words import words

then just call it directly, for example:

find_max_min([2, 6, 8, 1]) returns [1, 8]

find_max_min([9, 3, 3, 9, 9]) returns [9]

words

words('Hello World') returns {'Hello': 1, 'World' : 1]

Running the Tests

Navigate into the project directory and type:

Test max_min

python max_min.py

You should see:

All 5 tests passed

Test words

python test_words.py

You should see:

All 9 tests passed

Enjoy.