Assignment, Variables, Constants & Sequences
Inputs, Outputs & Type Conversion
Condition controlled Loops
Count Controlled loops
Nested Selection and Iteration
Subroutines 1 - Procedures
Subroutines 2 - Functions
Operators and Operations
Structured Programming
Validation and verification
2D-Data Structures
There is no Powerpoint to go with this section. You can download the notes sheet from Task 1 and make some notes on the topic, however the main task is to be completed in your book. Don't forget to update your learning objectives at the end!
Open a Cornell notes sheet by clicking on the image below.
Remember good notes allow students to help each other problem solve
Good notes will help you organise and process data and information
Cornell notes help you retain and recall information by having three different ways/sections where you process the information.
Note taking is a way of helping you to remember things you would otherwise forget. It also stimulates our critical thinking skills.
Remember! whenever you see the notes icon this means the information is important and you should write it down on your notes sheet.
A two-dimensional array is a data structure in computer science that stores a collection of items in a grid-like format, similar to a table in a spreadsheet. Imagine a grid of lockers, each locker is addressed by its row and column, and can store one item.
For example, in computer science, a two-dimensional array can be used to store a table of numbers or strings, where each element can be accessed by its row and column. They are useful when you need to organize information in a tabular format, like a table of scores or a map.
Here's an example of how you could create a 2D array in Python that represents a chessboard, where the values in the array are strings representing the pieces on the chessboard:
chessboard = [ ["r", "n", "b", "q", "k", "b", "n", "r"], ["p", "p", "p", "p", "p", "p", "p", "p"], [" ", " ", " ", " ", " ", " ", " ", " "], [" ", " ", " ", " ", " ", " ", " ", " "], [" ", " ", " ", " ", " ", " ", " ", " "], [" ", " ", " ", " ", " ", " ", " ", " "], ["P", "P", "P", "P", "P", "P", "P", "P"], ["R", "N", "B", "Q", "K", "B", "N", "R"] ]
Here, the chessboard is represented as a list of lists, where each inner list represents a row on the chessboard, and the items in the list represent the pieces on the chessboard, with "r" representing a black rook, and "R" representing a white rook etc.
You can access an individual piece on the chessboard using two sets of square brackets, like this:
chessboard[i][j]
where i and j are the indices of the row and column of the piece you want to access. For example chessboard[0][0] would give you the piece on top left corner.
You can also use a nested for loop to iterate through all pieces on the chessboard, like this:
for row in chessboard: for piece in row: print(piece)
Use would print all the pieces of the chessboard in row major order.
Lets look at the learning outcomes and decide which one best describes our current level of understanding :
Tick the one you feel is closest to your level
AQA Computer Science Tutor
Python Syntax