This folder contains hands-on exercises and engineering examples to practice the Python essentials covered in the course modules.
Before running these notebooks, install the project dependencies:
# Install uv (if not already installed)
Invoke-WebRequest -Uri https://astral.sh/uv/install.ps1 -OutFile install.ps1
powershell -ExecutionPolicy Bypass -File .\install.ps1
# Navigate to project root
cd flocode-python-essentials
# Sync dependencies
uv syncModule 05 Practice
- Variables and data types
- Arithmetic operations
- Order of operations
- String formatting
- Material stress calculations
Module 06 Practice
- Lists of beam data
- List comprehensions for filtering
- Dictionaries for beam properties
- Sets for material tracking
- Tuples for fixed records
- Load combination dictionaries
Module 07 Practice
- Conditional beam checks
- For loops processing loads
- While loops for iterative design
- Break and continue logic
- Exception handling
- Nested loops for combinations
Module 08 Practice
- Simple calculation functions
- Default parameters
- Returning multiple values
- Conditional logic in functions
- Processing lists with functions
- Lambda functions for transformations
- Modular program structure
Comprehensive Workshop
Complete engineering workflows combining all Python essentials:
- Material database management
- Beam analysis library
- Section property calculations
- Batch processing with iteration
- Iterative design optimization
- Load combinations
- Data visualization with Matplotlib
- Full project analysis pipeline
This notebook demonstrates real-world patterns you'll use daily as an engineering Python developer.
- Work sequentially - Start with 01 and progress through each notebook
- Type the code yourself - Don't just read it; run it and modify it
- Break things - Change values, remove lines, see what errors you get
- Add your own examples - Extend each notebook with your own engineering problems
- Keep notes - Add markdown cells documenting what you learned
- Open a notebook file
- Select the kernel (top right): choose the
.venvPython interpreter - Run cells with
Shift + Enter
uv run jupyter labNavigate to the examples/ folder and open any notebook.
- Check the main course modules (01-housekeeping.md through 08-functions.md)
- Review Python documentation: https://docs.python.org/3/
- Ask questions in the Flocode community
Remember: The best way to learn is to solve problems that matter to you. Use these notebooks as templates, then build your own engineering tools.
(c) Flocode, 2025