04: Python: Variables

This activity is designed to help you learn how to use python to write a program that uses and stores data in variables.

Use and store data in variables
Variables: Use and store data in variables

As well as learning how to debug syntax errors, so far we’ve looked at how to do input and output in python. The next step is to learn how to store the data that’s been input and use it as part of the output. That’s where variables come in handy.

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.

03: Python: Syntax errors

03: Python: Syntax errors

This activity is designed to help you learn how to use python to write a program that asks the user for input.

Find and fix common errors in your code
Python Syntax errors: Find and fix common errors in 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.

Free interactive Python tutorials for beginners

Try it, debug it, extend it
Try it, debug it, extend it: Python tutorials

Over the next few weeks I’ll hopefully be publishing a series of 20 free interactive python tutorials for beginners. Here’s the link to the list of resources

Each activity has four sections:

Theory: what you need to know if you’re in a hurry

Try it: working code snippets that you can adapt and use

Debug it: code sabotaged with common mistakes that you can practise fixing

Extend it: open ended project ideas for your to apply what you’ve learnt.