Week 3: Flow Control

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

1/41

flashcard set

Earn XP

Description and Tags

These flashcards cover key vocabulary and concepts from the Python programming lecture focusing on flow control, boolean expressions, loops, conditional statements, and lists.

Last updated 7:16 AM on 8/4/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

42 Terms

1
New cards

Boolean expression

A logical statement that is either TRUE or FALSE.

2
New cards

Relational operators

Operators that compare values, such as

3
New cards

Logical operators

Operators that combine Boolean values, such as and, or, and not.

4
New cards

Short-circuit evaluation

A programming technique where the second argument is only evaluated if the first argument is true.

5
New cards

While loop

A loop that repeats as long as a specified condition is true.

6
New cards

Conditional statement

A statement that executes different actions based on whether a condition is true or false.

7
New cards

Chained conditional

Multiple conditions evaluated in sequence, using elif and else statements.

8
New cards

Nested conditional

A conditional statement inside another conditional statement.

9
New cards

List definition

A collection of ordered values that can contain mixed data types.

10
New cards

Accessing list elements

Retrieving items from a list using their index.

11
New cards

Updating list elements

Changing values at specific indices in a list.

12
New cards

Appending elements

Adding an element to the end of a list.

13
New cards

Inserting elements

Adding an element at a specified index in a list.

14
New cards

Removing elements

Deleting elements from a list using methods like pop.

15
New cards

Slicing

Extracting a portion of a list using a range of indices.

16
New cards

Iteration

The process of repeating a set of instructions a specified number of times or until a condition is met.

17
New cards

Iterable object

An object that can produce an iterator, such as lists and strings.

18
New cards

Iterator

An object that enables traversing through a collection.

19
New cards

List comprehension

A concise way to create lists in Python using a single line of code.

20
New cards

Boolean algebra

A branch of algebra where the values of the variables are true and false.

21
New cards

Logic gates

Devices that perform a Boolean function; examples include AND, OR, and NOT.

22
New cards

5 != 6

An example of a true Boolean expression.

23
New cards

if statement format

if condition: action; else: alternative action.

24
New cards

List methods

Functions like append(), pop(), and insert() that manipulate list data.

25
New cards

String as a list

A string is a list of characters in Python.

26
New cards

Variable declaration

The process of creating a variable and assigning it a value.

27
New cards

Input function

A built-in Python function that reads input from the user.

28
New cards

Loop control statements

Statements that control the flow of loops, such as break and continue.

29
New cards

Iteration control variable

A variable that tracks the current iteration of a loop.

30
New cards

List slicing syntax

list[start:stop:step] allows retrieval of items within a range.

31
New cards

Boolean logic

The study of truth values and how they affect program execution.

32
New cards

elif keyword

A shorthand for 'else if' in Python's conditional statements.

33
New cards

Condition evaluation

The process by which Python checks if a condition is true or false.

34
New cards

Function call format

Name of the function followed by parentheses containing arguments.

35
New cards

Boolean variables

Variables that can only hold true or false values.

36
New cards

Comparison operator performance

The efficiency of assessing relationships between values.

37
New cards

While loop condition

The expression that determines if the loop continues or stops.

38
New cards

Logical statement

A statement that can be evaluated as true or false.

39
New cards

Dynamic typing in Python

Type of variable is determined at runtime.

40
New cards

Debugging

The process of identifying and fixing errors in code.

41
New cards

Executing code block

The section of code that runs when a condition is met.

42
New cards

Python list initialization

Creating a new list with specified values.