Python (Year 8)

5.0(2)
Studied by 202 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/27

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 1:44 PM on 3/17/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

28 Terms

1
New cards

Data Type

The Classification of a piece of data

2
New cards

Integer

A whole number (Positive or Negative)

3
New cards

Real (Float)

A number with a decimal point

4
New cards

Add

+

5
New cards

Multiplication

*

6
New cards

What are the basic arithmetic operators?

+ (Add), - (Subtract), * (Multiply), / (Divide)

7
New cards

What does the ^ symbol represent in arithmetic?

Exponent (To the Power Of)

8
New cards

What does MOD represent in arithmetic?

Modulo Division (Remainder)

9
New cards

What does DIV represent in arithmetic?

Integer Division

10
New cards

Divide (Python)

/

11
New cards

MOD

Returns the remainder e.g. 9 MOD 4 returns 1, as that is what is left.

12
New cards

character

A single alphanumeric character

13
New cards

String

A sequence of characters

14
New cards

Boolean

A single value of either TRUE or FALSE

15
New cards

Iteration

repetition - When something loops

16
New cards

Greater than

When a number is larger than the other number. Example 65 > 56

17
New cards

less than

Less than is used to compare two numbers when the first number is smaller than the second number.
Example 14<65

18
New cards

Variable (Programming)

Used to store information in our program

19
New cards

Selection (Programming)

Allows the computer to make a selection between alternative conditions; decisions choice, if/else

20
New cards

loop/iteration

FOR and WHILE can be used for iteration (repeating a series of instructions)

21
New cards

Variable example (String)

name = input("Enter name")

22
New cards

Variable example (Integer)

age = int(Input("Enter age"))

23
New cards

While Loop Python Example

count = 1
while count <= 5:
print(count)
count += 1

24
New cards

Casting (Programming)

Casting in Python is the process of converting a variable from one data type to another.

Example - num = int(input(“Enter number”))

25
New cards

Binary Search

When a list of items (IN ORDER) is searched by going to the middle value and deciding which half to search next.

26
New cards

Binary Search

Best used on large lists as it halves the number of items to search each time. It is an efficient algorithm for finding an item from a sorted list by repeatedly dividing the search interval in half.

27
New cards

Variable (programming)

A storage location identified by a name used to hold data that can be changed during program execution.

28
New cards

Python Scenario Revision Example - Train Ticket (You can use AI to help you here or any other method)

A Train sells tickets at £5 each.

People get a £2 discount if the price is a certain amount.


1) Ask the user how many tickets they want to buy and store this. 

2) Calculate the total cost of the tickets and store this.

3) If the total cost is more than £30

4) Take of £2 discount from the cost.

5) If not above £ 30, no discount is applied.

6) Display the final amount to pay, with a message. 

7) Code commented - Title, Name, Date