List in Python Quiz 8

Share with others

Welcome to your List in Python Quiz 8

Q71. Write the output of the following:

print([] * 2 )

Q72. Which of the following will give output as [21,2,9,7] ? if list L = [1,21,4,2,5,9,6,7]

Q73. Write the output of the following :

L = ['Amit', 'anita', 'Sumant', 'Zaid']
print(max(L))

Q74. Write the output of the following:

L=[13,12,15,27,3,46]
list1.pop(3)
print(L)

Q75. Write the output of the following:

list1=[3,2,5,7,3,6]
list1.remove(3)
print(sum(list1))

Q76. Write the output of the following

list1=[3,2,5,7,3,6]
list1.insert(6,3)
print(list1)

Q77. Write the output of the following

L = [14, 2, 3, 16, 15]
L[1:4] = [5, 4, 8]
print(L)

Q78. Write the output of the following

L = ["Amit", 'Sumit', 'Ravi']
print(L[0][1])

Q79. Write the output of the following

L = ["Amit", 'Sumit', 'Ravi']
print("@".join(L))

Q80. Write the output of the following

L = ['A', 'S', 'R']
L = L + L*2
print(L)


Share with others

Leave a Reply

error: Content is protected !!