Answer to Question #93045 in Python for Lokeshwaran

Question #93045
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?


x[1] == 40, y[1] == 40, w[0] == 4, u[0] == 50

x[1] == 50, y[1] == 40, w[0] == 50, u[0] == 50

x[1] == 4, y[1] == 40, w[0] == 4, u[0] == 50

x[1] == 40, y[1] == 40, w[0] == 50, u[0] == 50
1
Expert's answer
2019-08-22T06:08:05-0400
Dear Lokeshwaran, 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