Introduction to Programming with Python

Write your first Python programs and build confidence solving problems with code. Start with short scripts, then work up to a program that takes input, applies rules, stores information, and produces a useful result.

View the curriculum · See the final project

Who it’s for

First-time programmers and learners who want a practical foundation for further study in software, automation, or data analysis.

What you’ll build

A Python project with reusable functions, saved data, and clear instructions for running it.

What you’ll learn

Run Python scripts and work with strings, numbers, Boolean values, and inputs.

Use conditions and loops to build programs that make choices and repeat tasks.

Group related data in lists and dictionaries and organise logic with functions.

Read and write files, handle common exceptions, and interpret tracebacks.

Write small tests and document how another person can run your program.

Course curriculum

Writing your first programs

Set up Python and learn how to turn a simple rule into a working script.

Module 1 · Python setup and execution

Learn the difference between the interactive shell and a script. Use an editor and terminal to create, run, and change a Python file.

Practical exercise. Run a script that prints a formatted greeting based on the user’s input.

Module 2 · Variables, types, and input

Work with strings, integers, floats, and Boolean values. Convert text input to numbers and use f-strings to format output.

Practical exercise. Build a bill splitter or unit converter that prints readable results.

Module 3 · Decisions and comparisons

Use comparisons, Boolean operators, and if, elif, and else to choose between outcomes. Trace the code with example values.

Practical exercise. Write a price or eligibility calculator and check values at the decision boundaries.

Module 4 · Loops and repeated input

Use for loops to process a series of values and while loops for tasks that repeat until a condition is met.

Practical exercise. Create a menu-driven script or a quiz that scores multiple answers.

Working with data and functions

Store several pieces of information and split a longer script into manageable functions.

Module 5 · Lists and strings

Access items by index, slice sequences, and build or filter a list. Clean up and normalise simple text input.

Practical exercise. Keep a list of expenses or scores and calculate a summary.

Module 6 · Dictionaries and sets

Represent a record with keys and values. Group related records and use sets to check for unique entries.

Practical exercise. Create a small catalogue and look up entries by name or identifier.

Module 7 · Functions and modules

Use parameters and return values to reuse logic. Split code into files and import standard library tools where useful.

Practical exercise. Turn a longer script into short functions for input, calculation, and reporting.

Module 8 · Reading and writing files

Open and close files safely with a context manager. Load and save simple records using CSV or JSON.

Practical exercise. Save catalogue or expense entries and reload them on the next run.

Reliable scripts and a final project

Make the program easier to use, troubleshoot, and share.

Module 9 · Exceptions and debugging

Read tracebacks and distinguish syntax errors from runtime errors. Catch specific exceptions and give useful feedback.

Practical exercise. Handle a missing file and invalid numeric input without losing progress.

Module 10 · Testing and code readability

Use sample inputs and assertions to check function output. Improve naming and remove duplicated code.

Practical exercise. Write checks for empty records, invalid values, and a normal user workflow.

Module 11 · Project structure and documentation

Keep data, functions, and the main script organised. Write a README with setup steps and example input.

Practical exercise. Package a small script so another learner can run and understand it.

Module 12 · Build and demonstrate

Combine input, logic, file storage, and reporting. Show what happens in both normal use and when something goes wrong.

Practical exercise. Demonstrate the finished script and explain how its main functions work.

Final project

Build an expense tracker, quiz, or small inventory manager. Use functions and a list or dictionary to model the data, save records to a file, and handle invalid input. Submit the source, sample data, tests, and short instructions for running it.

Frequently asked questions

Can I start without having written code before?

Yes. The first modules start with setup, variables, and small scripts, then introduce larger programs step by step.

Does the course cover data science or machine learning?

It builds the Python fundamentals you’ll use in those areas. The projects focus on inputs, data structures, files, and clear program logic.

What software will I use?

The exercises use Python 3, a code editor, and the standard library. Contact Kamata College for setup guidance before class.

Ask about Introduction to Programming with Python

Contact Kamata College for upcoming intakes, fees, class schedules, and any equipment requirements.

Enquire about this course

Explore other Tech School courses

Karibu Kamata College.