M

Mr. Dubey • 52.33K Points
Coach

Q. What is the output of the below code?

Code:
def fun(arr):
    arr=arr[::-1]
arr=[1,2,3,4,5]
fun(arr)
print(arr)
  • (A) [1,2,3,4,5]
  • (B) [5,4,3,2,1]
  • (C) []
  • (D) NameError
  • Correct Answer - Option(A)
  • Views: 122
  • 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.


Question analytics