M
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)
arr=arr[::-1]
arr=[1,2,3,4,5]
fun(arr)
print(arr)
- Correct Answer - Option(A)
- Views: 153
- Filed under category Python
Discusssion
Login to discuss.