# What will be the output of the following Python code points = [[1, 2], [3, 1.5], [0.5, 0.5]] points.sort() print(points)

1.  [[1, 2], [3, 1.5], [0.5, 0.5]]

2.  [[3, 1.5], [1, 2], [0.5, 0.5]]

3.  [[0.5, 0.5], [1, 2], [3, 1.5]]

4.  [[0.5, 0.5], [3, 1.5], [1, 2]]

4

[[0.5, 0.5], [1, 2], [3, 1.5]]

Explanation :
No Explanation available for this question

# What will be the output of the following Python code a=[10,23,56,[78]] b=list(a) a[3][0]=95 a[1]=34 print(b)

1.  [10,34,56,[95]]

2.  [10,23,56,[78]]

3.  [10,23,56,[95]]

4.  [10,34,56,[78]]

4

[10,23,56,[95]]

Explanation :
No Explanation available for this question

# What will be the output of the following Python code print(list(zip((1,2,3),('a'),('xxx','yyy')))) print(list(zip((2,4),('b','c'),('yy','xx'))))

1.  [(1,2,3),(‘a’),(‘xxx’,’yyy’)] [(2,4),(‘b’,’c’),(‘yy’,’xx’)]

2.  [(1, 'a', 'xxx'),(2,’ ‘,’yyy’),(3,’ ‘,’ ‘)] [(2, 'b', 'yy'), (4, 'c', 'xx')]

3.  Syntax error

4.  [(1, 'a', 'xxx')] [(2, 'b', 'yy'), (4, 'c', 'xx')]

4
```[(1, 'a', 'xxx')]
[(2, 'b', 'yy'), (4, 'c', 'xx')]```

Explanation :
No Explanation available for this question

# What will be the output of the following Python code import copy a=[10,23,56,[78]] b=copy.deepcopy(a) a[3][0]=95 a[1]=34 print(b)

1.  [10,34,56,[95]]

2.  [10,23,56,[78]]

3.  [10,23,56,[95]]

4.  [10,34,56,[78]]

4

[10,23,56,[78]]

Explanation :
No Explanation available for this question

# What will be the output of the following Python code s="a@b@c@d" a=list(s.partition("@")) print(a) b=list(s.split("@",3)) print(b)

1.  [‘a’,’b’,’c’,’d’] [‘a’,’b’,’c’,’d’]

2.  [‘a’,’@’,’b’,’@’,’c’,’@’,’d’] [‘a’,’b’,’c’,’d’]

3.  [‘a’,’@’,’b@c@d’] [‘a’,’b’,’c’,’d’]

4.  [‘a’,’@’,’b@c@d’] [‘a’,’@’,’b’,’@’,’c’,’@’,’d’]

4
```[‘a’,’@’,’b@c@d’]
[‘a’,’b’,’c’,’d’]```

Explanation :
No Explanation available for this question

# What will be the output of the following Python code a=[1,2,3,4] b=[sum(a[0:x+1]) for x in range(0,len(a))] print(b)

1.  10

2.  [1,3,5,7]

3.  4

4.  [1,3,6,10]

4

[1,3,6,10]

Explanation :
No Explanation available for this question

# What will be the output of the following Python code a="hello" b=list((x.upper(),len(x)) for x in a) print(b)

1.  [(‘H’, 1), (‘E’, 1), (‘L’, 1), (‘L’, 1), (‘O’, 1)]

2.  [(‘HELLO’, 5)]

3.  [(‘H’, 5), (‘E’, 5), (‘L’, 5), (‘L’, 5), (‘O’, 5)]

4.  Syntax error

4

[(‘H’, 1), (‘E’, 1), (‘L’, 1), (‘L’, 1), (‘O’, 1)]

Explanation :
No Explanation available for this question

# What will be the output of the following Python code a=[1,2,3,4] b=[sum(a[0:x+1]) for x in range(0,len(a))] print(b)

1.  10

2.  [1,3,5,7]

3.  4

4.  [1,3,6,10]

4

[1,3,6,10]

Explanation :
No Explanation available for this question

# What will be the output of the following Python code a=[[]]*3 a[1].append(7) print(a)

1.  Syntax error

2.  [[7], [7], [7]]

3.  [[7], [], []]

4.  [[],7, [], []]

4

[[7], [7], [7]]

Explanation :
No Explanation available for this question

# What will be the output of the following Python code b=[2,3,4,5] a=list(filter(lambda x:x%2,b)) print(a)

1.  [2,4]

2.  [ ]

3.  [3,5]

4.  Invalid arguments for filter function

4