Skip to content

VolodymyrLykhachov/PBC-tasks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PBC-tasks

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 --provisionto start vm in Virtual box with IP 192.168.33.10 and VM name violant

Lesson 2

  • test_fibonachi.py unit test file for fibonachi.py for pytest

  • test_pairs.py unit test file for pairs.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

Releases

No releases published

Packages

No packages published

Languages