1. L=["heena","teena","meena"] print(L[-1][-1]) #------------------------------ 2. L=["heena","teena","meena"] print(L[1:-1]) #------------------------------ 3. l=["heena","teena","meena"] print(l*2) #------------------------------- 4. L=["heena","teena","meena"] print(L**2) #------------------------------- 5. l=[1,2,3,4,5] for i in L: print(i,end=" ") i=i+1 #------------------------------- 6. l=["heena","teena","meena"] l1=["reena"] print(l+l1) #------------------------------- 7. Which command is used to add an element in the list (a)l1.add(4) (b)l1.append(4) (c)l1.new(4) #------------------------------ 8. L=[13,12,21,16,35,7,4] sum=5 sum1=3 for i in L: if(i%4==0): sum=sum+i continue if(i%7==0): sum1=sum1+i print(sum,end=" ") print(sum1) #----------------------------- ''' o/p 1. a 2. ['teena'] 3. ['heena', 'teena', 'meena', 'heena', 'teena', 'meena'] 4. unsupported operand type(s) for ** or pow(): 'list' and 'int' 5. 1 2 3 4 5 6. ['heena', 'teena', 'meena', 'reena'] 7. (b) l1.append(4) 8. 37 66 ''' #---------------------------------------------------------------------------------- 1. Write the output of the following: a=[11,42,31,14] print(max(a)) print(min(a)) print(a.index(42)) 2. a=[11,42,31,'a',14] print(max(a)) 3. a=['amit','Amit','Amita'] print(max(a)) print(min(a)) 4. a=[1,2,3,4] a.reverse() print(a) 5. a=[1,5,7,5] b=a.index(5) print(b) 6. a=[1,5,7,5] b=a.index(15) print(b) 7. a=[1,2,3,4] a[1]='a' print(a) 8. a=[1,2,3,4,5,6,7,8,9] b=a[3:7] print(b) 9. by default sort() function arrange the elements in _____order.(increasing/decreasing) 10. write the role of reverse() function in list. 11. reverse() function create new list.(T/F) 12. what type of error return by index() function if element is not present in list? 13. len() function returns the ____of the list. 14. what do you mean by nested list.Give one example of nested list. ''' output 1. 42 11 1 2.not supported between instances of 'str' and 'int' 3. amit Amit 4. [4, 3, 2, 1] 5. 1 6. 15 is not in list 7. [1, 'a', 3, 4] 8. [4, 5, 6, 7] 9. increasing 10. reverse() function arrange the elements of list in the reverse order. 11. False 12. index error 13. length 14. A list inside another list is called nested list. for example a=[1,2,3,['a','b']]