02: Python: Input

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

Write a program that asks for input
Python Input: Write a program that asks for input

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.

01: Python: Output

This activity is designed to help you learn how to use python to write a program that displays an output.

Write a program that displays an output
Python output: Write a program that displays an output

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.

Python for beginners: free interactive self marking activities

I made create.withcode.uk a few years ago to let students and teachers quickly write, run and share python code in a web browser so that you can use any device without having to download any software or remember any usernames / passwords.

More recently, I’ve been working on a feature that lets teachers create self-marking python activities so that students can work through them and claim a free pdf certificate at the end of each activity. The idea is to make it easier to support and stretch students who want or need to learn programming in Python.

Each activity has four sections:

Try it, debug it, extend it
Try it, debug it, extend it
  1. Theory: Learn the key words and concepts
  2. Try It: Look at and run some working example code
  3. Debug It: Practise debugging some common errors
  4. Extend It: Adapt and extend code with ideas for bigger projects

Published Python Activities:

Here’s the activities I’ve published so far:

01: Output

Write a program that displays an output
Output: Write a program that displays an output

02: Input

Write a program that asks for input
Input: Write a program that asks for input

03: Syntax Errors

Find and fix common errors in your code
Syntax errors: Find and fix common errors in your code

04: Variables

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

05: Naming Conventions

Use variables and constants with sensible names
Naming conventions: Use variables and constants with sensible names

06: Data Types

Convert and use different types of data
Data types: Convert and use different types of data

07: Runtime Errors

Find and fix common errors in your code
Runtime errors: Find and fix common errors in your code

08: Sequence

Plan the order of instructions carefully
Sequence: Plan the order of instructions carefully

09: Selection

Tell your code how to make decisions
Selection: Tell your code how to make decisions

10: Logic errors

Find and fix common errors in your code
Logical errors: Find and fix common errors in your code

On the next page you’ll see a list of all of the activities that are planned to be published in the future.