CBSE Class 11 Informatics Practices
Question 46 of 80
Lists in Python — Question 9
Back to all questions[12, 32, 65, 26, 80, 10]
In the given code, list1 is initialized as [12, 32, 65, 26, 80, 10]. The sorted(list1) function is called, which creates and returns a new list with the elements of list1 sorted in ascending order, but it does not modify the original list1. Since the sorted result is not stored or printed, the next line print(list1) outputs the original unsorted list [12, 32, 65, 26, 80, 10].