Variables and Expressions Flashcards

1
Q

Variable

A

Named item that holds a value

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Assignment Statement

A

Assigns a value to a variable

x = 5

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Incrementing

A

Increasing a variables value by 1

x = x + 1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Identifier

A

Name that uses letters, underscores, and digits. Cannot start with a digit.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Reserved Words

A

Part of the language and can’t be used as identifiers

aka Keywords

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

PEP 8

A

Python Enhancement Proposal

Python style guide

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Object

A

Represents a value and is automatically created when interpreter executes a line of code

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Garbage Collection

A

Automatic process of deleting unused objects

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Name Binding

A

Process of associating names with interpreter objects. Happens with assignment statements.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Mutability

A

Indicates whether the object’s value is allowed to change

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Identity

A

Unique numeric identifier of an object. Usually refers to memory address.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Overflow

A

When value is too large to be stored in memory allocated by interpreter

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Expression

A

Combination of variables, literals, operators, and parentheses that evaluates to a value

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Literal

A

Specific value

2

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Operator

A

Symbol that performs a built-in calculation

+

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Compound Operator

A

Shorthand way to update a variable

+=, -=, *=, /=, %=

17
Q

Module

A

File containing Python code that can be used by other modules or scripts via an import statement.

18
Q

Dot Notation

A

FileName.VariableName