Posts Categorized: Tutorials

AppInventor: Locate Me

In this exercise we will create an Android mobile app that displays your current coordinates in the app and shows your position on a map. What are co-ordinates? On a map co-ordinates are measured by latitude and longitude and a number for both these measurements can pinpoint your exact position on earth. What is GPS?… Read more »

Keepie Uppie – Scratch Video Sensing

We are going to make a game in Scratch where you will try to keep a ball up without letting it fall to the bottom of the screen. An example is shown below: Start by create a new Scratch project Remove the Scratch cat sprite Enable ‘Video Sensing’ by clicking the blue ‘Add Extension’ button… Read more »

Scratch Quiz Game

We want to end up with a quiz game that asks questions and keeps track of the score Start a new project in Scratch and remove the scratch cat. We would like something to ask the questions so choose a new sprite from the Scratch library. I chose Avery but you can choose anything you… Read more »

Animating Your Name with Scratch

For this exercise we will be creating a cool animated logo of your name. An example is below: Scratch allows creating games, animations and stories. Use a Chrome or Chromium web browser and visit Scratch at: https://scratch.mit.edu/ When you first start scratch there will be one ‘Sprite’ (or object) on the stage – Scratchy the… Read more »

Python: Username Generator

The previous exercise used random to choose a random number. In this exercise (also available as a PDF) we choose random words from lists to create custom usernames. This exercise introduces the following concepts: String Manipulation Lists For Loops Type the code below into a new repl.it or use an Python IDE (code editor) such as… Read more »

Python : Roll the Dice Multiple Times

We would like to expand the code from the previous exercise to allow multiple rolls of the dice without having to re-run the program each time. This exercise introduces the following concepts: Whitespace String Manipulation Functions While Loops If Control Statements To your existing ‘Roll the Dice’ code add the lines below: import random run_prog… Read more »

Python : Roll the Dice

This short exercise will cover topics relevant to GCSE computing including: Variables Data Types Random Numbers Log in (or register) at https://repl.it Create a ‘New Repl’ Then choose ‘Python 3’ as the language Type the following code into the left pane: import random random_number = random.randint(1,6) print(“The dice rolled: ” + str(random_number)) Then click the… Read more »

Python : Hello World

This short exercise will cover topics relevant to GCSE computing including: Variables Data Types User Input Log in (or register) at https://repl.it Create a ‘New Repl’ Then choose ‘Python 3’ as the language Type the following code into the left pane: name = input(“What is your name ?”) print(“Hello ” + name) Then click the… Read more »

Python Programming Without Installing

repl.it

If you would like to try Python programming without installing Python or an IDE on your own computer you can log in to repl.it, type your code and run it – all from within your web browser.