Tutorials and guides

The importance of comments in Python

Comments are sections of code that are ignored by python when your code runs. But they are still really useful for making your code easier to read, understand, debug and improve.

This tutorial explains 5 ways that comments can help you as you learn to code in python. It guides you through what a comment is and how to use them effectively in your own programs.

Comments in Python
Parameters in python: Adapt and reuse sections of your code

Contents:

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.

Continue ReadingThe importance of comments in Python

19: Optimisation in python

Python is a very powerful and flexible programming language which lets you write programs quickly, but code written in python doesn’t always run as quickly as it might in other languages (like C or C++)

This tutorial guides you through why it can be really helpful to optimise your code and how to do that.

Make your code more efficient
Optimisation in python: Make your code more efficient

Contents:

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.

Continue Reading19: Optimisation in python

18: Parameters in python

Functions and procedures are both examples of sub programs. They both allow you to re-use code to make your programs more efficient and easier to read.

Parameters allow you to customise how procedures or functions work to make them even more powerful and flexible.

This tutorial guides you through what a parameter is and how to use them effectively in your own programs.

Parameters in python: Adapt and reuse sections of your code

Contents:

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.

Continue Reading18: Parameters in python