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)
β
Correct Answer: (A)
[1,2,3,4,5]
def fun(arr):
arr=arr[::-1]
arr=[1,2,3,4,5]
fun(arr)
print(arr)
You must be Logged in to update hint/solution