R

Ram Sharma • 193.86K Points
Coach

Q. What is the output of the following program? def REVERSE(L):

Code:
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 - Option(B)
  • Views: 166
  • Filed under category Python

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.


Question analytics