Ch.3 programming Variable and assignments

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

1/14

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 7:03 PM on 3/26/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

15 Terms

1
New cards

Variable

named item that holds a value

2
New cards

assignment statement

assigns a variable with a value

3
New cards

Reserved words

words that are part of the language and cannot be used as a programmer-defined name

4
New cards

object

represents a value and is automatically created by the interpreter when executing a line of code,For example, executing x = 4 creates a new object to represent the value 4

5
New cards

Garbage collection

deleting unused objects, automatic process that frees up space

6
New cards

Mutability

indicates whether the objects value is allowed to be changed

7
New cards

Immutable

means values cannot be changed, for ex. integer and strings cannot be changed

8
New cards

type()

returns the type of an object

9
New cards

id()

gives the value of an object’s identity

10
New cards

floating-point number

a real number that refers to the decimal point appearing anywhere(floating) in the number. ex. 0.0001 or 98.6

11
New cards

float

data type for floating point numbers(decimal point)

12
New cards

7.2e-4

0.00072

13
New cards

540,000,000

5.4e8

14
New cards

overflow

when a value is too large to be stored in the memory allocated by the interpreter

15
New cards

print(f"{my_float:.2f}")

syntax for outputting the float my_float with two digits after the decimal point

Explore top notes

note
Human Anatomy Lecture 1:
Updated 1289d ago
0.0(0)
note
AP euro midterm
Updated 464d ago
0.0(0)
note
Observation and Critique Exercise
Updated 632d ago
0.0(0)
note
1.1- 1.3 Solids Liquids Gases
Updated 1318d ago
0.0(0)
note
Human Anatomy Lecture 1:
Updated 1289d ago
0.0(0)
note
AP euro midterm
Updated 464d ago
0.0(0)
note
Observation and Critique Exercise
Updated 632d ago
0.0(0)
note
1.1- 1.3 Solids Liquids Gases
Updated 1318d ago
0.0(0)

Explore top flashcards