To add an element to a list which of the following expression is correct ?
What is the output of the following code ?
>>> s = [23, 24, 26, 56, 78]
>>> s.insert(3, 12)
>>> s
What is the output of the following code ?
>>> s = [34, 56, 78, 23, 67, 23, 42]
>>> s.count(23)
What is the output of the following code ?
>>> s1 = [16, 21, 72, 31, 91, 6, 12]
>>> s2 = s1.sort()
>>> s1, s2
What is the output of the following code ?
>>> s1 = [11, 123, 36, 45, 34, 45, 67]
>>> s1.index(45)
What is the output of the following code ?
>>> s = ['python2' , 'python3', 'java8', 'perl5', 'java9']
>>> s.clear(), s.index('python3')
What is the output of the following code ?
>>> s = [67, 23, 34, 23]
>>> s.remove(23)
>>> s
What is the output of the following code ?
>>> s = [45 ,78, 25]
>>> s.extend((56, ))
>>> s
>>> s = [24, 68, 33, 12, 92, 38]
>>> s[3] + s.pop()
What is the output of the following code ?
>>> s = [19, 12, 87]
>>> s.append([56])
>>> s.extend([87, 12])
>>> s