1. Python Syntax Whitespace and indentation Python uses whitespace/indentation to structure code instead of {}. A compound statement contains one or

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

1/36

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 2:52 AM on 9/24/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

37 Terms

1
New cards

Equality

The == operator checks whether two objects have equal values.

2
New cards

Object Identity

The is operator checks whether two names refer to the same object.

3
New cards

Mutable

An object that can be changed after it is created.

4
New cards

Immutable

An object that cannot be changed after it is created.

5
New cards

NoneType

The type of None, representing the absence of a value.

6
New cards

Type Casting

Converting an object/value to another type, such as str(), int(), float(), bool(), or list().

7
New cards

str()

Converts an object into its string representation.

8
New cards

list()

Converts an iterable (like a string or tuple) into a list.

9
New cards

Control Flow

Determines which statements execute and when based on certain conditions.

10
New cards

If Statement

A statement that executes a block of code if a specified condition is true.

11
New cards

For Loop

A loop that iterates over items in an iterable, executing a block of code for each item.

12
New cards

While Loop

A loop that continues to execute a block of code as long as a specified condition is true.

13
New cards

Break

A statement that immediately exits the loop.

14
New cards

Continue

A statement that skips the current iteration and moves to the next iteration of the loop.

15
New cards

Pass

A no-operation statement that does nothing; used as a placeholder.

16
New cards

lambda

An anonymous function defined with the lambda keyword, typically used for short, throwaway functions.

17
New cards

map()

Applies a function to every element in an iterable and returns a map object.

18
New cards

Datetime Module

A built-in module for working with dates and times in Python.

19
New cards

strftime()

Converts a datetime object to a formatted string.

20
New cards

strptime()

Parses a string into a datetime object.

21
New cards

id()

Returns the identity of an object, which is unique and constant during its lifetime.

22
New cards

Boolean Logic

A branch of algebra involving true or false values; it includes operations like and, or, not.

23
New cards

Short-Circuit Evaluation

The evaluation strategy where the second operand is not evaluated if the first operand determines the result.

24
New cards

list comprehension

A concise way to create lists by applying an expression to each item in an iterable.

25
New cards

Dictionary Access

Accessing values in a dictionary using their corresponding keys.

26
New cards

tuples

An immutable sequence type in Python, often used to group related data.

27
New cards

sets

An unordered collection type in Python that enforces uniqueness of its elements.

28
New cards

zip()

Combines multiple iterables element-by-element into a tuple.

29
New cards

enumerate()

A built-in function that adds a counter to an iterable and returns it as an enumerate object.

30
New cards

reversed()

Returns a reverse iterator for a given sequence.

31
New cards

sorted()

Returns a new sorted list from the elements of any iterable.

32
New cards

Generators

Functions that yield a sequence of values instead of returning a single value, using yield instead of return.

33
New cards

iterator protocol

A protocol that implements methods iter() and next() to allow objects to be iterable.

34
New cards

timedelta

A duration representing a difference between two dates or times.

35
New cards

list()

Creates a new list object from an iterable.

36
New cards

dict()

Creates a new dictionary object.

37
New cards

Python Arrays vs. NumPy Arrays

NumPy arrays use contiguous memory storage for performance, while Python lists use scattered memory.