Vidyalelo
Python · Q50

MCQs on Python Tuples: Exam

Programming · Python · question 50

Q50

What will be the output of the following Python code? >>> a=(2,3,1,5) >>> a.sort() >>> a

A.
(1,2,3,5)
B.
(2,3,1,5)
C.
None
D.
Error, tuple has no attribute sort
Answer

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board