Examveda

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: Option D


This Question Belongs to Python Program >> Tuples In Python

Join The Discussion

Related Questions on Tuples in Python