What is the output of the following program?
Def REVERSE(L) :
(L) reverse()
Return(L)
Def YKNJS(L) :
List = list()
List.extend(REVERSE(L) )
Print(List)
L = [1, 3.1, 5.31, 7.531]
YKNJS(L )
A) [1, 3.1, 5.31, 7.531]
B) [7.531, 5.31, 3.1, 1]
C) IndexError
D) AttributeError: „NoneType? object has no attribute „REVERSE?
Correct Answer:
Verified
Q21: What is the output of the following
Q22: What is the output of the following
Q23: What is the output of the following
Q24: What is the output of the following
Q25: What is the output of the following
Q27: What is the output of the following
Q28: What is the output of the following
Q29: What is the output of the following
Q30: What is the output of the following
Q31: What is the output of the following
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents