Consider the following lines of Python code. Which of the following is true | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Consider the following lines of Python code. Which of the following is true

a = 'nptel' b = [12,14,16] c = 72 x = [a,b,c] y = [a,b[:],c] u = x[:] v = y b = [12,17,16] v[1][1] = 15 Which of the following is correct? A) x[1][1] == 14, y[1][1] == 14, u[1][1] == 15, v[1][1] == 15  B) x[1][1] == 17, y[1][1] == 15, u[1][1] == 14, v[1][1] == 15 C) x[1][1] == 17, y[1][1] == 15, u[1][1] == 17, v[1][1] == 15 D) x[1][1] == 14, y[1][1] == 15, u[1][1] == 14, v[1][1] == 15

14th Feb 2018, 3:32 PM
darshan ks
darshan ks - avatar
3 Answers
+ 7
Please submit challenges via the lesson-factory. Thanks.
4th Mar 2018, 4:45 AM
Fox
Fox - avatar
- 1
????
14th Feb 2018, 3:34 PM
darshan ks
darshan ks - avatar