Find the output of the following code:
t=(11,22,33,44,55)
t=t[-2:-1]
t=t[-1]
print(t)
l = [12,21,32,11,76,1]
How to sort the above list ?
What is the use of // operator in Python?
Deduce the output of the following code:
n= {1,1,1,2,2,4,5,6,7,8}
n&={1,2,4,5}
print(list(filter(lambda x: x>1,n)))
What will be the output of the following Python code snippet?
print([i.lower() for i in "HELLO"])
Which of the following methods is used for adding items to a combo box widget?
Find the output of the following code:
lst = [x*2+1 for x in range(5)]
for i in reversed(range(len(lst))):
print(i, end=" ")
What will be the output of the following Python code?
>>> a={1,2,3}
>>> b=a.copy()
>>> b.add(4)
>>> a
The process of pickling in Python includes:
What is the output of the following code?
class A():
def disp(self):
print("A disp()")
class B(A):
pass
obj = B()
obj.disp()