πŸ“Š Python
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
πŸ’¬ Discuss
βœ… Correct Answer: (A) [1,2,3,4,5]

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
183
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
96%
Success Rate