Find the output of the following code:
l=[6,"a",54,":","b",1]
print(l.index(l[1]))
>>> my_tuple = (0, 1, False)
>>> a = any(my_tuple)
>>> print(a)
Suppose x is 345.3546, what is format(x, “10.3f”) (_ indicates space).
Functions defined inside a class are called:
What will be the output of the following Python code?
int('65.43')
Which function is used to display the login page again when a login attempt fails?
What is the output of the following Python code?
>>> a = "Say"
>>> b = "Hello"
>>> print(a, b)
What will be the output of the following Python code?
>>> a={1,2,3}
>>> b=a
>>> b.remove(3)
>>> a
What is the output of the following code?
list = [2, -1, 4, -5, -5, -3, 3, -2]
if all(abs(i) < 4 for i in list):
print("IF")
else:
print("ELSE")
Which of the following statements about lambda functions is false?