Chapter 4 Working with list and Dictionary in Python Class 11 IP NCERT Solution
Working with list and Dictionary in Python Q1. What will be the output of the following statements? i) list1 = [12,32,65,26,80,10] list1.sort() print(list1) ii) list1 = [12,32,65,26,80,10] sorted(list1) print(list1) iii) list1 = [1,2,3,4,5,6,7,8,9,10] list1[: : -2] print(list1[ : 3] + list1[ 3 : ]) iv) list1 = [1,2,3,4,5] print( list1 [ len ( list1 ) … Read more