Code-Along Sessions
These code-along sessions are designed to give you hands-on practice with the concepts covered in this sprint. Follow along with the instructors to build your skills in Python package creation, software engineering best practices, and more.
Code-Along 1: Python Packages and Virtual Environments
Session Overview
In this code-along session, we'll create a Python package from scratch, set up a virtual environment, and manage dependencies with pipenv. You'll get hands-on experience with the foundational skills needed for software engineering in Python.
Key Concepts
- Setting up a virtual environment with pipenv
- Creating a proper Python package structure
- Defining package metadata and requirements
- Installing and managing dependencies
- Importing and using modules across files
Resources
Code-Along 2: Python Classes and Unit Tests
Session Overview
In this session, we'll dive into object-oriented programming in Python, focusing on class design and implementation. We'll also cover the basics of unit testing to ensure our code works as expected.
Key Concepts
- Object-oriented programming principles
- Python class syntax and conventions
- Special methods and dunder methods
- Inheritance and composition
- Writing effective unit tests with pytest
- Test-driven development approaches