#1
What does the 'print' function do in Python?
#2
Which of the following is NOT a valid variable name in Python?
#3What is the output of the following code?
What is the output of the following code?
x = [1, 2, 3]
print(x.pop())
#4
Which of the following is used to handle exceptions in Python?
#5What is the output of the following code?
What is the output of the following code?
x = 'hello'
print(x[::-1])
#6What is the output of the following code?
What is the output of the following code?
x = [1, 2, 3]
print(x.append(4))
#7What is the output of the following code?
What is the output of the following code?
x = 5
y = 2
print(x / y)
#8What is the output of the following code?
What is the output of the following code?
x = [1, 2, 3]
print(x.pop(0))
#9
What is the purpose of the 'any' function in Python?
#10What is the output of the following code?
What is the output of the following code?
x = [1, 2, 3]
y = x
y.append(4)
print(x)
#11What is the output of the following code?
What is the output of the following code?
x = 5
y = 2
print(x ** y)
#12
What is the purpose of 'pass' statement in Python?
#13
What does the 'self' keyword refer to in Python?
#14
What does the 'global' keyword do in Python?
#15
What does the 'enumerate' function do in Python?
#16
What is the purpose of the 'finally' block in a try-except statement?
#17
What does the 'filter' function do in Python?
#18
What is the purpose of the 'super' function in Python?
#19
What is the purpose of the 'zip' function in Python?
#20What is the output of the following code?
What is the output of the following code?
x = [1, 2, 3]
print(list(map(lambda x: x * 2, x)))
#21
What does the 'join' method do in Python?
#22
What is the purpose of 'lambda' functions in Python?
#23
What does the 'map' function do in Python?
#24
What is the purpose of the 'yield' keyword in Python?
#25