Year 8 - Computer Science - Python

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/28

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 5:59 PM on 5/17/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

29 Terms

1
New cards

Casting

The process of converting data from one data type to another

2
New cards

Casting on input

Casting user input into int or float so it can be used as a number

3
New cards

Casting on output

Casting non‑string values to strings when concatenating in print statements

4
New cards

Syntax

The grammar rules of a programming language

5
New cards

Mathematical Operators

Symbols used to perform calculations such as + - * / ** // %

6
New cards

Modulus (%)

Operator that returns the remainder after division

7
New cards

Relational operators

Operators that compare two values and return True or False

8
New cards

Boolean

A data type that stores True or False

9
New cards

Boolean Operators

Operators (and, or, not) used to combine or modify Boolean values

10
New cards

Using modulus to check divisibility

Using % to check if remainder is 0 to see if a number divides exactly

11
New cards

Libraries

Collections of extra functions that can be imported into Python

12
New cards

Random library

Provides functions for generating random values

13
New cards

randint

Function that returns a random integer between two values

14
New cards

Math library

Provides mathematical functions like sqrt and constants like pi

15
New cards

sqrt

Function that returns the square root of a number

16
New cards

pi

A precise value of π imported from the math library

17
New cards

Time library

Provides functions related to time, such as pausing execution

18
New cards

sleep

Function that pauses the program for a set number of seconds

19
New cards

If Statements

Code that runs only when a Boolean condition is True

20
New cards

Print Function

Outputs text to the console

21
New cards

Variable

A named memory location that stores a value that can change

22
New cards

Python variable naming rules

Rules: no spaces, cannot start with a number, only underscore allowed as special character

23
New cards

Concatenation

Joining strings together using +

24
New cards

Data types

The format of data stored in a variable (string, integer, float, boolean)

25
New cards

String

A sequence of characters (text)

26
New cards

Integer

A whole number

27
New cards

Float

A number with a decimal point

28
New cards

Input Function

Prompts the user and stores text they enter

29
New cards

Prompt

The message shown to the user when asking for input