Follow changing stored values

A game developer tests the following Python fragment for a group-points display. Statements run from top to bottom. The symbol = stores the value calculated on its right, * means multiplication, and print displays the current value.


Python
players = 6
points = players * 8
players = players + 3
points = points + players
print(points)


How many points does the program display? Enter the number of points as a whole number.

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

More What Is Programming? Questions: