Wize Introduction to Programming Textbook > Values, Variables, and Types
Variables and Assignment Statements
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 = 32A 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.