What is the output?
Y=[2,5J,6] Y.sort()
Correct Answer:
C.Error
Explanation:
sort() function can sort numbers only, and in Y list notice that the 2nd element is not a number, so this will cause a compile error.
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
Correct Answer:
C.Error
Explanation:
sort() function can sort numbers only, and in Y list notice that the 2nd element is not a number, so this will cause a compile error.
need an explanation for this answer? contact us directly to get an explanation for this answer