install pip & venv sudo apt-get install python3 python3-pip python3-venv upgrade pip, setuptools & wheel python3 -m pip install --upgrade pip setuptools wheel creating & activating venv python3 -m venv .env source .env/bin/activate install pipenv & install requests package pip install --user pipenv cd project pipenv install requests group by -> [('a', 2), ('c', 1), ('b', 3)] arr = ['a', 'b', 'a', 'c', 'b', 'b'] [(l, sum([1 for e in arr if e == l])) for l in set(arr)] extension from file -> f_ex = '.pdf' import os f_name, f_ext = os.path.splitext('a/b/c.pdf') Resources installing-packages managing-dependencies packaging-projects