Report Bug

Qus

What will be the output of following?

Y=[2,5J,6]
Y.sort()
Qus

निम्नलिखित का आउटपुट क्या होगा?

Y=[2,5J,6]
Y.sort()


A. [2,6,5J]
B. [5J,2,6]
C. Error
D. [6,5J,2]


Solution
C. Error



Explanation

TypeError: '<' not supported between instances of 'complex' and 'int'

CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online Exam Quiz O Level NIELIT Study material and Quiz Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Best Website and Software Company in Allahabad Website development Company in Allahabad