代写C代码 代做C程序 C辅导 C家教

远程写代码 Debug 讲解答疑 不是中介,本人直接写

微信: ittutor QQ: 14061936 Email: ittutor@qq.com

导航

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.

  1. Assign the value 160 into a variable.
  2. Multiply the value in the variable by 2 and then store it back into the same variable.
  3. Print out the variable.

相关推荐