31. What will be the output of the following Python code?
>>>t1 = (1, 2, 4, 3)
>>>t2 = (1, 2, 3, 4)
>>>t1 < t2
>>>t1 = (1, 2, 4, 3)
>>>t2 = (1, 2, 3, 4)
>>>t1 < t2
32. What is the data type of (1)?
33. What will be the output of the following Python code?
>>>t=(1,2,4,3)
>>>t[1:-1]
>>>t=(1,2,4,3)
>>>t[1:-1]
34. Is the following Python code valid?
>>> a=(1,2,3)
>>> b=('A','B','C')
>>> c=tuple(zip(a,b))
>>> a=(1,2,3)
>>> b=('A','B','C')
>>> c=tuple(zip(a,b))
35. What will be the output of the following Python code?
>>> a=("Check")*3
>>> a
>>> a=("Check")*3
>>> a
36. Is the following Python code valid?
>>> a=(1,2,3,4)
>>> del a
>>> a=(1,2,3,4)
>>> del a
37. Suppose t = (1, 2, 4, 3), which of the following is incorrect?
38. What will be the output of the following Python code?
>>> a=[(2,4),(1,2),(3,9)]
>>> a.sort()
>>> a
>>> a=[(2,4),(1,2),(3,9)]
>>> a.sort()
>>> a
39. What type of data is: a=[(1,1),(2,4),(3,9)]?
40. What will be the output of the following Python code?
>>> import collections
>>> a=collections.namedtuple('a',['i','j'])
>>> obj=a(i=4,j=7)
>>> obj
>>> import collections
>>> a=collections.namedtuple('a',['i','j'])
>>> obj=a(i=4,j=7)
>>> obj