Recovering a starting game score

A game starts with score holding an unknown whole number of points. It then executes these Python statements in order:


Python
bonus = score * 2
score = score + 7
reported = bonus + score


After execution, reported holds 64 points. Determine the initial value of score, the final value of score, and the final value of bonus. Give each answer in points as an exact integer.

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

More Expressions and Statements Questions: