Question 1

Consider the tuple tuple1=("A","B","C" ) , what is the result of the following operation tuple1[-1] ?


Question 2

Consider the tuple A=((11,12),[21,22]) , that contains a tuple and list. What is the result of the following operation A[1] ?


Question 3

Consider the tuple A=((1),[2,3],[4]) , that contains a tuple and list. What is the result of the following operation A[2][0] ?


Question 4

What is the result of the following operation: '1,2,3,4'.split(',') ?


Question 5

True or false: after applying the following method, L.append(['a','b']) , the following list will only be one element longer.


Question 6

What is an important difference between lists and tuples?


Question 7

Consider the following list : A=["hard rock",10,1.2]

What will list A contain after the following command is run: del(A[0]) ?


Question 8

If A is a list what does the following syntax do: B=A[:] ?


Question 9

What is the result of the following: len(("disco",10,1.2, "hard rock",10)) ?