Main content
Course: Intro to computer science - Python?>?Unit 1
Lesson 3: VariablesTrace variables
Problem
Consider the following program.
num1 = 5
num2 = num1
num1 = num1 + 2
What is the final value of
num1
before the program terminates?What is final value of
num2
before the program terminates?