Python Programming Fundamentals (Weeks 1-5)

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

1/39

flashcard set

Earn XP

Description and Tags

Vocabulary flashcards covering key Python concepts, data types, operators, functions, conditional logic, list operations, and loops up through Week 5.

Last updated 5:36 AM on 9/27/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

40 Terms

1
New cards

Strings (str)

Any text enclosed in single, double, or triple quotes.

2
New cards

Integers (int)

Whole numbers without decimal places, which can be positive, negative, or zero (such as 4242, −1-1, or 00).

3
New cards

Floats (float)

Numbers that contain a decimal point (such as 3.14153.1415 or −12.5-12.5).

4
New cards

Booleans (bool)

Logical true or false statements represented simply as True or False.

5
New cards

type()

A built-in function used to inspect what type a value or variable is.

6
New cards

print()

A function that displays text or values to the screen, defaulting to sep=' ' and end='\n'.

7
New cards

input()

A function that prompts the user to type something in, which Python always reads as a string (str).

8
New cards

int()

A type conversion function that converts values to whole numbers.

9
New cards

float()

A type conversion function that converts values to decimals.

10
New cards

str()

Converts numbers or other objects back into text so they can be concatenated with other strings.

11
New cards

Concatenation

Joining strings together using the + operator.

12
New cards

String Indexing

The position of characters in a string starting at index 00, where negative indices count backward and −1-1 represents the very last character.

13
New cards

String Slicing

Extracting a sub-portion of text using the format string[start:stop:step], where the start position is included and the stop position is excluded.

14
New cards

Arithmetic Operators

Standard math operations including addition (+), subtraction (-), multiplication (), standard division (/), floor division (//), modulo (%), and exponentiation (*).

15
New cards

Floor Division (//)

An arithmetic operator that divides numbers and drops the decimal.

16
New cards

Modulo (%)

An arithmetic operator that gives the remainder of a division.

17
New cards

Exponentiation (**)

An arithmetic operator used to raise a number to a power.

18
New cards

Comparison Operators

Operators used to compare two values, yielding a Boolean (True or False), including ==, !=, >,

19
New cards

Short-Circuit Evaluation

The evaluation process in combined logical expressions using and or or from left to right, skipping the rest if the outcome is guaranteed by the left expression.

20
New cards

if Statement

The initial condition Python evaluates in conditional logic.

21
New cards

elif Statement

Additional checks in conditional logic that Python evaluates only if the preceding conditions were False.

22
New cards

else Statement

The catch-all block in conditional logic that runs if none of the preceding conditions were met.

23
New cards

Conditional Execution Flow

The order of evaluation where Python checks each branch from top to bottom, executes the code block as soon as one evaluates to True, and skips the rest.

24
New cards

Lists

Ordered, customizable collections that store multiple items under a single variable name.

25
New cards

List Indexing & Slicing

Operations on lists that work identically to strings, using syntax like list[0], list[-1], and list[start:stop].

26
New cards

.append(value)

A list method that adds an item to the end of a list.

27
New cards

.insert(index, value)

A list method that places an item at a specific position in a list.

28
New cards

.pop(index)

A list method that removes and returns an item from a list at a given index.

29
New cards

.remove(value)

A list method that removes the first matching item found in a list.

30
New cards

len()

A built-in helper function that finds the total count of elements in a list or collection.

31
New cards

sum()

A built-in helper function that adds numeric elements together in a collection.

32
New cards

max()

A built-in helper function that finds the highest value in a collection.

33
New cards

min()

A built-in helper function that finds the lowest value in a collection.

34
New cards

Membership Checks

Operations using the in and not in keywords to check whether an item exists inside a list.

35
New cards

for Loops

Loops used to repeat a block of code a specific number of times (using range()) or to iterate through every item in a list or characters in a string.

36
New cards

while Loops

Loops that keep repeating a block of code continuously as long as a specified logical condition remains True.

37
New cards

Primitive Data Types

Fundamental data categories in Python that tell the computer what kind of information a value represents.

38
New cards

Default Separator (sep)

The print() function parameter that places a space (sep=' ') between items by default.

39
New cards

Default End Character (end)

The print() function parameter that automatically adds a new line (end='\n') at the end of output.

40
New cards

Type Casting Requirement

The requirement to convert string inputs from input() using functions like int() or float() before performing mathematical calculations.