A beginner's notes on Python variables have the terms in one column and their meanings in another. Match each term to the description that fits it.

Match each term
A.

The name itself, which must start with a letter or underscore and contain no spaces

B.

A name that refers to a value so the program can use that value later

C.

The first time a name is given a value, before any line reads it

D.

Giving a name that already has a value a new one, which replaces the old value

E.

A shorthand such as total += 5 that updates a name using its own current value

F.

A line that evaluates the right-hand side, then binds the result to the name on the left

Initialization

Assignment statement

Reassignment

Augmented assignment

Variable

Identifier

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

A game developer tests score corrections with the following Python code. Determine the final values of score, checkpoint, and review after every statement executes. Give each answer in points, as a whole number.


Python
score = 18
checkpoint = score
score = 25
review = score
score = checkpoint
checkpoint = 32
Your answers

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

A booking program stores two seat counts in Python variables: aisle = 11 and window = 26. Which sequence correctly exchanges their values, leaving aisle equal to 26 and window equal to 11? Each sequence starts independently from the original counts.

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors