Fetch
Decode
Explain
Activities
Flashcards
Exam Questions
Revise
Blog
Contact
Login
Login
Menu
Activities
Flashcards
Exam Questions
Revise
Blog
Contact
Login
Topics
Revision notes
Programming
Fundamentals
In this topic
115 notes
in 21 sections
Section 1
SQL
Databases
SQL
The SELECT Clause
The FROM Clause
The WHERE Clause
8 notes
·
9 min read
Start reading
Section 2
Arithmetic Operators
Arithmetic operators
Addition, subtraction and multiplication
Division
Quotient and remainder
Exponentiation
6 notes
·
10 min read
Start reading
Section 3
Relational Operators
Comparison operators
Evaluating comparisons
Boundary comparisons
String comparison
Comparisons in conditions
5 notes
·
7 min read
Start reading
Section 4
Boolean Operators
Boolean Operators
The not Operator
Range Checks with Boolean Operators
Evaluating Compound Conditions
4 notes
·
5 min read
Start reading
Section 5
Variables
Variables
Variable Names
Assigning Calculations and Strings
Printing Variables and Text
Updating Variables and Running Totals
7 notes
·
12 min read
Start reading
Section 6
Output
The print Function
Printing Strings
Printing Numbers and Expressions
Printing Multiple Items with Commas
String Concatenation
7 notes
·
10 min read
Start reading
Section 7
Casting
Casting
The str() Function
int() and float() Conversions
bool() Conversions
Invalid and Chained Casts
6 notes
·
8 min read
Start reading
Section 8
Input
Storing Input in Variables
Conversion Is Not Validation
2 notes
·
3 min read
Start reading
Section 9
Arithmetic Operations
Arithmetic expressions
Order of operations
Using integer division and modulo
Arithmetic in Python programs
4 notes
·
7 min read
Start reading
Section 10
Random Library
Random number generation
Importing the random library
randint()
The random() function
Storing random values
8 notes
·
12 min read
Start reading
Section 11
Selection
Selection
1 note
·
1 min read
Start reading
Section 12
String Manipulation
Strings
String length and indexing
String slicing
Changing case
Character codes: ord() and chr()
6 notes
·
10 min read
Start reading
Section 13
Constants
Constants
Constants in Python
Constants and Variables
Benefits of Constants
Identifying and Improving Constants
5 notes
·
9 min read
Start reading
Section 14
Count-Controlled Iteration
Count-controlled iteration
Range Defaults and Steps
Calculations with the loop variable
Iterating over sequence items
4 notes
·
7 min read
Start reading
Section 15
Condition-Controlled Iteration
Condition-controlled iteration
Stopping values
Infinite loops
3 notes
·
5 min read
Start reading
Section 16
1D Arrays
Arrays
Fixed-length arrays
Accessing and changing array elements
Filling and printing arrays
Finding highest and lowest values
6 notes
·
11 min read
Start reading
Section 17
2D Arrays
2D arrays
2D array indexes
Building a 2D array
Processing one row or one column
Visiting every element in a 2D array
6 notes
·
11 min read
Start reading
Section 18
Records
Why records are used
A record in a 1D array
Searching a table held in a 2D array
Totalling and updating numeric fields
4 notes
·
7 min read
Start reading
Section 19
File Handling
Why programs use files
Text files and file modes
Opening and closing files
Writing to a text file
Reading a line from a text file
7 notes
·
10 min read
Start reading
Section 20
Sub Programs
Sub programs
Defining and calling sub programs
Procedures
Functions and return values
Parameters
8 notes
·
13 min read
Start reading
Section 21
Local and Global Variables
Scope
Local variables
Global variables
The global statement
Local and global variables with the same name
8 notes
·
15 min read
Start reading