Python Programming Flashcards

Grade 6 · Technology · Flashcards

Key vocabulary and concepts for getting started with Python programming.

Flashcards

Python
A high-level, general-purpose programming language known for its readable syntax, created by Guido van Rossum in 1991.
variable
A named storage location in memory that holds a value which can change during program execution.
string
A sequence of characters (text) enclosed in single or double quotes, e.g., "hello" or 'world'.
integer
A whole number with no decimal point, such as -3, 0, or 42.
float
A number that includes a decimal point, such as 3.14 or -0.5.
boolean
A data type with only two possible values: True or False.
print()
A built-in Python function that outputs text or values to the screen.
if / elif / else
Keywords used to create conditional logic — code that runs only when certain conditions are met.
for loop
Repeats a block of code for each item in a sequence, such as range(5) or a list.
while loop
Repeats a block of code as long as a specified condition remains True.
def
The keyword used to define (create) a new function in Python.
indentation
The whitespace (spaces or tabs) at the start of a line; Python uses indentation to define code blocks instead of curly braces.
syntax error
An error caused by code that violates Python's grammar rules, preventing the program from running.
comment
Text in code that starts with # and is ignored by Python; used to explain code to other programmers.

Get a personalized course on Python Programming Introduction built around your child.