What is called when a function is defined inside a class?
Which method is used to count the number of occurrences of a particular element in a list?
What is QGIS used for?
What will be the output of the following Python code?
>>>print (r"\nhello")
What will be the output of the following Python function (random module has already been imported)?
random.choice('sun')
Is the following Python code valid?
>>> a=(1,2,3)
>>> b=a.update(4,)
What will be the output of the following Python code?
l=[2, 3, [4, 5]]
l2=l.copy()
l2[0]=88
l
l2
What will be the output of the following code?
class A:
def one(self):
return self.two()
def two(self):
return 'A'
class B(A):
def two(self):
return 'B'
obj1=A()
obj2=B()
print(obj1.two(),obj2.two())