Chapter 2 Runestone Python

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

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 5:38 PM on 9/22/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

23 Terms

1
New cards

data types

integer, string, floating point

2
New cards

float

The Python data type that represents numbers with decimals

3
New cards

type conversion function

A function that can convert a data value from one type to another.

4
New cards

int

a Python data type that holds integers (positive and negative whole numbers plus zero)

5
New cards

variable

name that refers to a value

6
New cards

assignment statements

a statement that assigns a value to a variable name

7
New cards

assignment operator

= is Python's assignment token, which should not be confused with the mathematical comparison operator using the same symbol.

8
New cards

variable name

A name given to a variable. Variable names in Python consist of a sequence of letters (a..z, A..Z, and _) and digits (0..9) that begins with a letter. In best programming practice, variable names should be chosen so that they describe their use in the program, making the program self documenting.

9
New cards

keywords

A reserved word that is used by the compiler to parse a program. cannot be used as variable names

10
New cards

statement

instruction that the Python interpreter can execute

11
New cards

expression

A combination of variables, operators, and values that represents a single result value.

12
New cards

evaluates

interpreter does this to the expression and dsiplays the result

13
New cards

operands

One of the values on which an operator operates.

14
New cards

integer division

An operation that divides one integer by another and yields an integer. Integer division yields only the whole number of times that the numerator is divisible by the denominator and discards any remainder (always truncates)

15
New cards

modulus operator

An operator, denoted with a percent sign ( %), that works on integers and yields the remainder when one number is divided by another.

16
New cards

prompt string

Used during interactive input to provide the user with hints as to what type of value to enter.

17
New cards

Rules of Precedence / Order of Operations

PEMDAS -- exponent goes from right to left but everything else is left to right

18
New cards

initialize (a variable)

give a variable an initial value

19
New cards

increment

updating a variable by adding

20
New cards

decrement

updating a variable by subtracting

21
New cards

operator

A special symbol that represents a simple computation like addition, multiplication, or string concatenation.

22
New cards

str

A Python data type that holds a string of characters (or converts to string data type)

23
New cards

comment

# information in a program that is meant for programmers and has no effect on the execution of a program.