Advertisements
Advertisements
प्रश्न
What will be the output of the following statement?
list1 = [12,32,65,26,80,10]
list1.sort()
print(list1)टीपा लिहा
Advertisements
उत्तर
The sort() method will sort the list in ascending order in place.
OUTPUT:
[10, 12, 26, 32, 65, 80]
shaalaa.com
Lists in Python
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
