Q.1.
Suppose list1 is [3], what is list1 after list1.reverse()?
Q.2.
Suppose listExample is [3], what is list1 after listExample.extend([5])?
Q.3.
Suppose listExample is [3], what is list1 after listExample.pop(1)?
Q.4.
Suppose listExample is [3], what is list1 after listExample.pop()?
Q.5.
What will be the output of the following Python code? >>>"Welcome to Python".split()
Q.6.
What will be the output of the following Python code? >>>list("a#b#c#d".split('#'))
Q.7.
What will be the output of the following Python code? myList = [1]max = myList[0]indexOfMax = 0for i in range(len(myList)): if myList[i] > max: max = myList[i] indexOfMax = i >>>print(indexOfMax)
Q.8.
What will be the output of the following Python code? myList = [6]for i in range(6): myList[i -= myList[i] for i in range(6): print(myList[i], end = " ")
Q.9.
What will be the output of the following Python code? >>>list1 = [3]>>>list2 = list1>>>list1[= 4>>>print(list2)
Q.10.
What will be the output of the following Python code? def f(values): values[=v = [3]f(v)print(v)