Python Module Presentation Module F
Python Module Presentation Module F
By Mark Kinyingi
Overview 6
01 The Problem We Face
03 Hands-on
The problem we face
• Lost work: "I accidentally deleted my heat exchanger calculations...“
• Version confusion: "Which reactor model was the final one?“
• Collaboration chaos: "Did you use the old or new Antoine constants?“
• No backup: "My laptop crashed and I lost 3 months of process simulations“
• Knowledge silos: "Only Sarah knows how the distillation model works"
The solution – Version Control
• Track every change to your code and documents
• Never lose work - complete history of all modifications
• Collaborate safely - multiple people can work on the same project
• Professional standards - industry-standard tool used by top engineering companies
• Documentation - README files, comments, and project wikis
What is Git & GitHub?
Git (The Engine)
• Version control system that tracks changes in files
• Local tool - works on your computer
• Creates snapshots of your project at different points in time
• Branching - work on different features simultaneously
What is Git & GitHub?
GitHub (The Platform)
• Cloud-based hosting for Git repositories
• Collaboration features - share code with team members
• Backup & sync - your code is safe in the cloud
• Project management - issues, discussions, documentation
• Free for public and private repositories
Chemical Engineering Analogy
Think of Git like a process control system:
• Commits = Taking readings at regular intervals
• Branches = Running parallel experiments
• Merging = Combining results from different test runs
• Repository = Your lab notebook with complete experimental history
Hands-on
Creating your first repository
Steps
• Sign up in Github through the link:
• https://github.com/
3. Error Handling
Validate input parameters
Handle edge cases
Use try/except blocks (we'll cover this in the future)
Provide helpful error messages
Further Resources
Book
Python for Everybody (previously sent to the club
whatsapp group
Online Course
Coursera: "Python for Everybody"
FreeCodeCamp: Python
w3schools for practise
Codedex for game-like practise
Thank You
[email protected]