Object-oriented programming exercise from Udacity
- Object-oriented programming exercises
- Distributions packages
.
|- OOP_exercises
|- packages
|- gaussian_distribution_package (gaussian distribution only)
|- distributions_package (gaussian distribution and binomial distribution)
|- test_venv
- Clone this repository
- Install python3 and pip
- Setup a virtual environment and activate it. A virtual environment test_venv has already set up in this repo.
cd test_venv/Scripts
activate
- Select package that you wish to install
cd ../../packages/[package]
- Pip install the package. Can use pip list to check whether the package has downloaded successfully.
pip install .
pip list
- Open python environment and import the package
> python
>>> from distributions import Gaussian
>>> from distributions import Binomial