Problem 1¶
Step through the following code and determine what the final value is for both first and second. Replace XXX in main.py with the final values for first and second.
first = 8
second = 9
first = first + second
second = first - second
first = first - second
In your submission, do not copy in this code. Instead, replace XXX in main.py with the values for the variables first and second.
Problem 2
The following instructions are also included in variables.py for your convenience. Place your answer on the next line below the corresponding instruction.
- Assign the value 160 into a variable.
- Multiply the value in the variable by 2 and then store it back into the same variable.
- Print out the variable.