Python Basics Review

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/28

flashcard set

Earn XP

Description and Tags

A comprehensive set of vocabulary flashcards covering the introductory concepts of Python programming, including data types, operators, and syntax.

Last updated 3:03 AM on 8/20/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

29 Terms

1
New cards

Python

A high-level, interpreted, general-purpose programming language known for its readable syntax, used in web development, data analysis, and AI.

2
New cards

Interpreted

A characteristic of Python where code runs line by line via the Python interpreter without requiring a separate compile step.

3
New cards

Dynamically typed

A system where a variable's type is determined by Python at runtime rather than being declared explicitly by the programmer.

4
New cards

Indentation-based

A syntax rule where whitespace (indentation) is used to define code blocks instead of curly braces.

5
New cards

Variable

A name that refers to a value stored in memory, which is created the moment a value is first assigned to it.

6
New cards

snake_case

The naming convention for Python variables and function names where words are separated by underscores.

7
New cards

intint

A basic data type representing whole numbers, positive or negative, such as 4242.

8
New cards

floatfloat

A basic data type representing numbers with a decimal point, such as 3.143.14.

9
New cards

strstr

A basic data type representing text as a sequence of characters enclosed in single or double quotes.

10
New cards

boolbool

A logical data type that represents one of two values: TrueTrue or FalseFalse.

11
New cards

listlist

An ordered, mutable collection of items, represented as [1,2,3][1, 2, 3].

12
New cards

tupletuple

An ordered, immutable collection of items, represented as (1,2,3)(1, 2, 3).

13
New cards

dictdict

A data type consisting of key-value pairs, represented as {a:1}\{'a': 1\}.

14
New cards

setset

An unordered collection of unique values, represented as {1,2,3}\{1, 2, 3\}.

15
New cards

NoneTypeNoneType

A type representing 'no value' or the absence of a value, used with the keyword NoneNone.

16
New cards

type()type()

A built-in function used to check the class or data type of a specific value or variable.

17
New cards

Floor division (////)

An arithmetic operator that divides two numbers and rounds the result down to the nearest whole number, e.g., 5//25 // 2 equals 22.

18
New cards

Modulus (%\%)

An arithmetic operator that returns the remainder of a division, e.g., 5%25 \% 2 equals 11.

19
New cards

Exponent (**)

An arithmetic operator used for power calculations, e.g., 525 ** 2 equals 2525.

20
New cards

Augmented assignment

Shortcuts for modifying variables, such as x+=5x += 5, which is equivalent to x=x+5x = x + 5.

21
New cards

Immutable

A property of strings meaning their contents cannot be changed in place once they are created.

22
New cards

Indexing

The process of accessing a single character in a string using its position, represented by square brackets, e.g., message[0]message[0].

23
New cards

Slicing

The process of accessing a range of characters in a string, represented as message[0:5]message[0:5].

24
New cards

f-strings

Formatted string literals that allow embedding expressions inside string literals using curly braces, e.g., f"{name}is{age}"f"\{name\} is \{age\}".

25
New cards

Comparison Operators

Operators such as ====, !=!=, >>, <<, >=>= and <=<=, which compare values and return a boolean result.

26
New cards

Logical Operators

Operators such as andand, oror, and notnot used to combine or modify boolean values.

27
New cards

Type Conversion (Casting)

The process of explicitly converting a value from one data type to another using functions like int()int(), float()float(), and str()str().

28
New cards

Comments

Text in the code meant for humans that is ignored by the interpreter, starting with # for single lines or triple quotes for multiple lines.

29
New cards

input()input()

A built-in function that pauses the program to read text typed by the user, always returning the data as a string.