adplus-dvertising
frame-decoration

Question

What will be the output?
points = [[1, 2], [3, 1.5], [0.5, 0.5]]
points.sort()
print(points)

a.

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

b.

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

c.

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

d.

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

Posted under Python

Answer: (c).[[0.5, 0.5], [1, 2], [3, 1.5]].

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What will be the output?