...

About Me

As part of this project you will learn:

What is computer programming (coding)?

Computer Programming or Coding is the process of writing instructions for a computer to follow. It's like a recipe, but for a computer. The instructions tell the computer what to do and in what order to do it.

Those sets of instructions that the computer follows to do something are written in a Programming Language.

Next
Please ensure all required fields are filled in
Python Programming Language

We will be learning a text-based programming language called Python.

Why Python?

  • It's perfect for beginners.
  • It's easy to setup.
  • It's powerful
  • It's can be used for graphics, animations, web applications, games, etc.
  • What is Trinket?

    During our Coding Classes, we will be using Trinket. Trinket is an online version of code editor where students can write and run their code online. Trinket is available online at trinket.io.

    Students may create a free account to save all the projects-> click here, and note that parental permission is required to create accounts for children under 13.

    IMPORTANT!: It's important to understand that Trinket creates public web pages and projects that anyone with a link can view. Young people may need a reminder about the importance of not sharing personal information online.

    Python Syntax

    Python has a simple syntax similar to the English language. Understanding the basic symbols in programming is important. We will frequently come across these symbols in our coding classes.


    Prev Next
    Please ensure all required fields are filled in
    Step 1: Saying hello
  • Open the blank Python template trinket: Open New.
  • Type the following into the window that appears:
  • The line #!/bin/python3 just tells Trinket that we’re using Python 3 (the latest version).
  • Click Run, and you should see that the print() command prints everything between the quote marks ''.
  • If you've made a mistake, you'll get an error message telling you what went wrong instead!
  • Try it! Delete the end quote ' or the closing bracket ) (or both) and see what happens.
  • Prev Next
    Please ensure all required fields are filled in
    Step 2: Enter your name

    The input() allows you to input information into the program. Let's ask to enter the name. Type the following code into the next line:

    Click Run, this piece of code will ask you to enter your name. Enter your name.

    Variables

    Your name will be stored in the code in the variable called name. Variables are containers for storing data values.

    Prev Next
    Please ensure all required fields are filled in
    Step 3: Print your name back

    Now our program knows your name, so let's print it out. Type the next line of code as shown in the picture:

    After you run the code you will be able to see that program printed out a greeting to you.

    Prev Next
    Please ensure all required fields are filled in
    Step 4: Save your work

  • If you don't have a Trinket account, click the down arrow and then click Link. This will give you a link that you can save and come back to later. Or Click Email to send this project to your email address.
  • You'll need to do this every time you make changes, as the link will change!
  • If you have a Trinket account, you can click Remix to save your own copy of the trinket.
  • Prev Next
    Please ensure all required fields are filled in
    Step 5: Challenge

  • Improve your program to ask for the following details: Name, age, hobby, favourite colour, and interesting fact.
  • Then, print out all those information about yourself in the following format as in the picture below and introduce yourself to the class!
  • Prev Next
    Please ensure all required fields are filled in
    Step 6: Final program code

    The final program code should look like this:

    Don't forget to save your work!

    Prev Next
    Step 7: Complete and Share

    Submit your final project

    In order to receive your completion certificate all projects should be submited before 6th April 2023



    Copy your Trinket Url

  • Click Share->Link
  • Copy the link to share your code
  • Paste link into the field
  • Prev