Pyton Bootcamp tasks folder
Lesson 1
Files:
-
fibonachi.py
To get fibonacci sequence run it with parameter of sequence size. Return list of values. Return empty list if parameter less or equal 0. Return empty set if paramenter is not int. -
pairs.py
Return set of unique pairs with specified sum. Return empty set if no any pairs with specified sum -
vargantfile
config file for Vagrant with specified IP 192.168.33.10 and VM name violant.
To run VM:
- install Vagrant
- copy
vagrantfile
to VM directory - run
vagrant up --provision
to start vm in Virtual box with IP 192.168.33.10 and VM name violant
Lesson 2
-
test_fibonachi.py
unit test file forfibonachi.py
for pytest -
test_pairs.py
unit test file forpairs.py
for pytest
Added provision section to vargantfile
To prepare virtual env execute next commands:
- python -m venv venv
- source venv/bin/activate
- pip install -r
requirements.txt