amscotti / python_code_examples

Simple Python code examples

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Python Code Examples

Python package

This repository contains a collection of Python code examples demonstrating various concepts and techniques. The project uses Python 3.11 and includes unit tests to ensure the correctness of the implemented solutions.

Getting Started

Prerequisites

  • Python 3.11
  • pip (Python package installer)

Setting up the project

  1. Clone the repository:
git clone https://github.com/amscotti/python_code_examples.git
  1. Change to the project directory:
cd python_code_examples
  1. Create a virtual environment (optional, but recommended):
python -m venv venv
  1. Activate the virtual environment:
source venv/bin/activate
  1. Install the required packages:
pip install -r requirements.txt

Running Unit Tests

This project uses pytest for running unit tests. To run the tests, execute the following command in the project directory:

pytest

About

Simple Python code examples


Languages

Language:Python 100.0%