Task 1: Do Together

What the program should do when correctly sequenced:

  1. Define the distance
  2. Define the time.
  3. Divide distance by time to get speed.
  4. Print the speed.

Task 2

What the program should do when correctly sequenced:

  1. Define the price.
  2. Define the quantity.
  3. Multiply them to get the total.
  4. Print the total cost.

 

Task 3

There are one or two lines of incorrect code that don't need to be used.

What the program should do when correctly sequenced:

  1. Define the price.
  2. Define the quantity.
  3. Multiply them to get the total.
  4. Print the total cost.

 

Task 4

Find the total amount of cookies and print this out.

Remember to define the variables first, then calculate, then print.

Task 5

Calculate the area of a football pitch.

Remember to define the variables first, then calculate, then print.

Task 6

Convert hours to minutes.

Remember to define the variables first, then calculate, then print.

Task 7

Find the average score from 2 scores.

Task 8

Calculate the speed of a runner in meters per second.

Remember to define the variables first, then calculate, then print.

Task 9

Saying hello.

  1. Ask the question
  2. Get the input from the user
  3. Print the output

Task 10

Asking for a Pet’s name.

  1. Ask the question
  2. Get the input from the user
  3. Print the output

Task 11

  1. Ask for a name
  2. User inputs the name
  3. Ask for a favourite food
  4. User inputs the food
  5. Print a response

Task 12

Create an if / else statement.

Lines of code inside an if, else statement need to be indented.

Task 13

Create an if / else statement.

Lines of code inside an if, else statement need to be indented.

Task 14

Create a program that asks the user for their age and checks if they are eligible to vote.

Lines of code inside an if, else statement need to be indented.

Task 15

Create a program that asks the user for their password and it if equals “hello123” access is granted.

Lines of code inside an if, else statement need to be indented.

Task 16

Use a loop to print the numbers 1 to 10.

Lines of code inside a while loop need to be indented.

Task 17

Get the program to write a simple message.

  1. Ask the user for their name and a message
  2. display a personalised response.

Task 18

Open Raspberry Pi editor and

https://editor.raspberrypi.org/en/projects/blank-python-starter

Write a program that calculates the area of a rectangle

  1. Define the width  
  2. Define height
  3. Calculate the area (width x height)
  4. Print the total area

Task 19

Open Raspberry Pi editor and

https://editor.raspberrypi.org/en/projects/blank-python-starter

Write a program that asks a user for their name and prints out a message to say hello and say their name

  1. Ask for users name 
  2. Get the user to input their name
  3. Print a message to say hello which includes their name