What is the value of the expression 5**2**1**7?
What is PEP 8?
Which of the following values does Python consider as True?
What is the output of the following code?
from functools import reduce
n = reduce(lambda a, b: a * b, range(5))
print(n)
What will be the output of the following Python code?
>>> a={5,6,7}
>>> sum(a,5)
Which Python function is used to get a list of all built-in methods of a class?
What will be the output of the following Python code?
str1 = "Applicable"
str2 = str1.replace('a', 'e')
print(str2)
Which of the following is the correct way to invoke the sqrt function after importing it from the math module?
What will be the output of the following Python code?
x = ['ab', 'cd']
for i in x:
i.upper()
print(x)
What will be the output of the following Python code?
class change:
def __init__(self, x, y, z):
self.a = x + y + z
x = change(1,2,3)
y = getattr(x, 'a')
setattr(x, 'a', y+1)
print(x.a)