AI & Data
Python Programming Foundations
Start from zero and finish able to read, write and debug real Python. No prior coding required.
Overview
Python is the shortest path from no programming experience to building something that works. This course takes you from the first line of code to writing small programs that read files, talk to web APIs and automate the repetitive parts of your job or coursework.
Sessions are hands-on. You write code in every class, and you leave each week with something that runs. The final two weeks are spent building a project of your own choosing with instructor support.
Learning outcomes
Read and write Python confidently, including functions, loops and error handling
Work with files, CSV data and JSON without reaching for a spreadsheet
Call a public web API and do something useful with the response
Use Git to track your own work and recover from mistakes
Debug a program methodically instead of guessing
Ship a small project end to end
Curriculum
01Week 1-2: First programs
- Installing Python and setting up an editor
- Variables, types and the shape of a program
- Conditionals and loops
- Reading error messages without panic
02Week 3: Functions and structure
- Writing and calling functions
- Arguments, return values and scope
- Splitting a program across files
03Week 4: Collections
- Lists, dictionaries, sets and tuples
- Choosing the right structure for the job
- Comprehensions
04Week 5: Files and data
- Reading and writing text files
- CSV and JSON
- A practical automation exercise
05Week 6: The outside world
- HTTP and web APIs
- Using the requests library
- Handling failure: timeouts, bad responses, retries
06Week 7-8: Project
- Scoping something you can actually finish
- Version control with Git
- Build, review and present
Prerequisites
- Comfortable using a computer and a web browser
- A laptop you can bring to class (limited lab machines available on request)
- No programming experience required