Code Academy Notes 1 + 2

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

1/24

flashcard set

Earn XP

Description and Tags

A comprehensive set of vocabulary flashcards covering basic Python syntax, data types, errors, arithmetic operators, and control flow based on the lecture notes.

Last updated 5:00 PM on 6/20/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

25 Terms

1
New cards

Comment

A note in Python code for humans to read. Comments start with # and are ignored when the program runs.

2
New cards

print()

A Python function that displays text or values as output.

3
New cards

Variable

A name that stores a value so the program can use it later.

4
New cards

Variable assignment

Using == to store a value in a variable, such as message_string = "Hello there".

5
New cards

Literal value

The actual value written directly in code, such as "Welcome Home" or 33.

6
New cards

Error

A mistake Python finds when trying to run code.

7
New cards

SyntaxError

An error caused by code written in a way Python cannot understand, such as missing punctuation or an extra parenthesis.

8
New cards

NameError

An error caused when Python sees a name it does not recognize, often because a variable was not defined or was typed differently.

9
New cards

int

An integer: a whole number with no decimal point, such as 2-2, 00, or 1515.

10
New cards

float

A floating-point number: a number with a decimal point, such as 2.12.1 or 98.698.6.

11
New cards

ZeroDivisionError

The error Python raises when code tries to divide by 00.

12
New cards

Expression

A combination of values, variables, and operators that Python can evaluate.

13
New cards

**

Python's exponentiation operator, used to multiply a base number by itself for a specified power.

14
New cards

Modulo operator

The %\% operator, which returns the remainder after division.

15
New cards

String concatenation

Combining two or more strings into one new string using the ++ operator.

16
New cards

str()

A function that converts another value, such as a number, into a string.

17
New cards

+=

The plus-equals operator, a shorthand used to add to or append onto the current value of a variable.

18
New cards

Triple quotes

Three quotation marks, either """ or ''', used to begin and end a multi-line string.

19
New cards

Control flow

The order in which Python executes code and decides which blocks should run.

20
New cards

Boolean expression

A statement that can be evaluated as either True or False.

21
New cards

Relational operator

An operator that compares two values and returns True or False, also known as a comparison operator.

22
New cards

==

The equal-to comparison operator that returns True if both operands have the same value.

23
New cards

bool

Python's data type for Boolean values (True or False).

24
New cards

if statement

A conditional statement that runs an indented block of code only if its condition is True.

25
New cards

and

A Boolean operator that returns True only if both connected expressions are True.