my_tuple = (1, 2, 3)
my_tuple[1] = 4
print(my_tuple)Select an option to see the answer and solution.
Practice every MCQ with options. Use Show answers when you want the correct option and solution.
60
Questions
2/3
Page
Pick an option on a question to see the right answer and solution.
my_tuple = (1, 2, 3)
my_tuple[1] = 4
print(my_tuple)Select an option to see the answer and solution.
my_list = [1, 2, 3]
del my_list[1]
print(my_list)Select an option to see the answer and solution.
my_list = [3, 1, 2]
my_list.sort()
print(my_list)Select an option to see the answer and solution.
my_list = [1, 2, 3]
my_list.insert(1, 4)
print(my_list)Select an option to see the answer and solution.
Select an option to see the answer and solution.
my_list = [1, 2, 3]
my_list.reverse()
print(my_list)Select an option to see the answer and solution.
my_list = [1, 2, 3, 4]
my_list.pop()
print(my_list)Select an option to see the answer and solution.
my_tuple = (1, 2, 3)
print(my_tuple[1])Select an option to see the answer and solution.
my_list = [1, 2, 3, 4]
my_list.remove(2)
print(my_list)Select an option to see the answer and solution.
my_tuple = (1, 2, 3)
new_tuple = my_tuple.copy()
print(new_tuple)Select an option to see the answer and solution.
>>>t1 = (1, 2, 4, 3)
>>>t2 = (1, 2, 3, 4)
>>>t1 < t2Select an option to see the answer and solution.
Select an option to see the answer and solution.
>>>t=(1,2,4,3)
>>>t[1:-1]Select an option to see the answer and solution.
>>> a=(1,2,3)
>>> b=('A','B','C')
>>> c=tuple(zip(a,b))Select an option to see the answer and solution.
>>> a=("Check")*3
>>> aSelect an option to see the answer and solution.
>>> a=(1,2,3,4)
>>> del aSelect an option to see the answer and solution.
Select an option to see the answer and solution.
>>> a=[(2,4),(1,2),(3,9)]
>>> a.sort()
>>> aSelect an option to see the answer and solution.
Select an option to see the answer and solution.
>>> import collections
>>> a=collections.namedtuple('a',['i','j'])
>>> obj=a(i=4,j=7)
>>> objSelect an option to see the answer and solution.