16: Procedures in python

Making and using your own procedures in python is a great way to make your code more efficient, more readable and more re-usable.

This tutorial guides you through what a procedure is, how to use them and how and when you should define your own procedures.

Reuse sections of your code
Procedures in python: Reuse sections of your code


Page 1: Intro

Page 2: The theory: learn what you need to know as fast as possible.

Page 3: Try it: try out and adapt some working python code snippets.

Page 4: Debug it: Learn how to find and fix common mistakes.

Page 5: Extend it: Choose a project idea to use your newfound python skills.

This Post Has 2 Comments

  1. Syed Zaidi

    Hi there,

    Absolutely love your resources on programming and started using them today. Just wondering if there are solutions for the de-bugs on the programs here that pupils are supposed to de-bug. It will help me a lot so I can compare their answers with it.

    1. pddring

      Thanks so much for your message. I haven’t written up the answers yet – I’m trying go get through the full set of 20 activities then the next job will be to publish a student workbook and set of answers. Sorry not to help yet. Hope you’re well

Leave a Reply