Answer to Question #79943 in Python for Pradnya

Question #79943
2.5 points
2.5 points
Consider the following lines of Python code.

x = [13,4,17,1000]
w = x[1:]
u = x[1:]
y = x
u[0] = 50
y[1] = 40
Which of the following is correct?

1) x[1] == 40, y[1] == 40, w[0] == 50, u[0] == 50
2) x[1] == 4, y[1] == 40, w[0] == 4, u[0] == 50
3) x[1] == 50, y[1] == 50, w[0] == 50, u[0] == 50
4) x[1] == 40, y[1] == 40, w[0] == 4, u[0] == 50
1
Expert's answer
2018-08-20T00:48:45-0400
Dear Pradnya, your question requires a lot of work, which neither of our experts is ready to perform for free. We advise you to convert it to a fully qualified order and we will try to help you. Please click the link below to proceed: Submit order

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS