Given a string example=” hello” what is the output of example.count(‘l’)?
Which of the following operators checks the equality of two operands?
What will be the output of the following Python code?
print('ab12'.isalnum())
What is a correct syntax for importing library in python ?
Which of the following functions returns a value in degrees, counterclockwise from the horizontal right?
What will be the output of the following Python code?
>>> a = {1, 2, 3}
>>> a.intersection_update({2, 3, 4, 5})
>>> a
What is tail recursion?
What will be the output of the following Python code?
class A:
def __init__(self):
self.multiply(15)
print(self.i)
def multiply(self, i):
self.i = 4 * i;
class B(A):
def __init__(self):
super().__init__()
def multiply(self, i):
self.i = 2 * i;