Q6.
Write the output of the following code :
>>>L=[1,5,9]
>>>print(sum(L),max(L),min(L))
a. 15 9 1
b. Error
c. Max and Min are only for String Value
d. None of the above
Q7.
Do we have any inbuilt function for shuffling the values of List. :
a. True
b. False
Q8.
Write the output of the following code :
>>>L=[1,2,3,4,5,[6,7,8]]
>>>print(L[5])
a. [6, 7, 8]
b. 6, 7, 8
c. Error
d. 6
Q9.
Write the output of the following code :
L=list(“www.rajeshshuklacatalyst.com”)
print(L[25 : -1])
a. [‘c’ , ‘o’]
b. [‘c’ , ‘o’ , ‘m’]
c. (com)
d. Error
Q10.
Write the output of the following code :
L=list(“www.rajeshshuklacatalyst.com”)
print(L[27 : -1])
a. Error
b. No Value
c. None
d. [ ]