#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)
#8
What is the purpose of 'pass' statement in Python?
#9
What does the 'self' keyword refer to in Python?
#10
What does the 'global' keyword do in Python?
#11
What does the 'enumerate' function do in Python?
#12
What is the purpose of the 'finally' block in a try-except statement?
#13
What does the 'join' method do in Python?
#14
What is the purpose of 'lambda' functions in Python?
#15
What does the 'map' function do in Python?
#16
What is the purpose of the 'yield' keyword in Python?
#17