Category: Programming

  • Input (1)

    Input (1)

    Reading input is really important in programming. It means that we can interact with the computer program. There are a number of methods of doing this. Here we will focus on using the Python input function to read input and assign the data entered to a variable. The input function returns a value which is…

  • Variables

    Variables

    Variables are used to store data and the contents of them can be changed. This could be strings (text), numbers (integers, floats / decimals), or booleans (true or false). Variables must start with a letter. When naming variables (and functions) in Python we use an _ to separate different words. For example a variable to…

  • Fixing Errors (1)

    Fixing Errors (1)

    Try running the program below: There will be a number of errors that are detected when the program runs. The ones here are called syntax errors as they are due to the errors being due to the text we have used in our code. These are different to logic errors which the code will run…

  • Output

    Output

    Create a new file in your editor of choice called ex_1_output.py Enter the code shown below. We are using the print function. You can identify functions in Python as they have ( ) after the function name. The print function takes one or more arguments (stuff inside the brackets). In this example it has one…

  • Introduction

    Introduction

    Python is a high level third generation programming language. Python is an interpreted language as opposed to a compiled language. This means that each line of Python code is executed (run) line by line directly on the computer only at the time the program is run. This is different from a compiled language such ad…

  • Visual Studio Setup for Python

    Visual Studio Setup for Python

    Download and install Python 3 first if it’s not already installed. Once Python is installed restart your computer before moving to the next step. Download Visual Studio Code if you don’t already have it. Open Visual Studio Code Install the Python extension. Click the icon below to access the Extensions tab. Install the Microsoft Python…

  • VS Code – Extensions for Unity

    VS Code – Extensions for Unity

    For Unity you should install the following extensions in Visual Studio Code. C# Unity Tools Use this video to help you through the process.

  • Visual Studio Code

    Visual Studio Code

    This lesson will have you download, install and configure Visual Studio Code. You should have a Github account created before starting this activity. Installing Visual Studio Code Go to code.visualstudio.com. And download Visual Studio Code. Run the installer. When asked select the options shown below Both Add “Open with Code” options Register Code as an…

  • Python

    Python

    Download and install Python. You only need to do this for your own computer. When installing make sure to select Add Python 3.10 to PATH and choose Customise installation. Adding Python to the PATH allows us to run Python from any folder as if it were in that folder on the computer. On the Advanced…

  • .NET SDK 4.7.1 Developer Framework

    .NET SDK 4.7.1 Developer Framework

    Download the .NET 4.7.1 developer framework from Microsoft here. This is needed for Unity and VS Code This is needed to enable the intellisense autocompletion in VS Code. Once installed restart your computer.