Home /
Expert Answers /
Computer Science /
1-write-assignment-statements-one-statement-using-the-operator-in-python-that-perform-the-foll-pa612
(Solved): 1. Write assignment statements (one statement using the = operator) in Python that perform the foll ...
1. Write assignment statements (one statement using the = operator) in Python that perform the following operations: a. Add num to sum and store the result to sum. b. Multiply num by 2 and store in result. c. Double the value stored in userNum. Do not use any other variables. For questions 2 - 5, create a hand tracing table for each of the variables and state what the code will display. Include a copy of your hand tracing table (take a picture if you complete on paper) and include in your answer document: Hint: Watch the Hand Trace Video in Unit 5 - lesson 2 2. x=0y=5z=4?x=y?z?2z=z?2y=x??1? print ("x = ", x,"y=",y,"z=",z)