Ad
Code
Diff
  • def find_max(arr):
        return max(arr)
    • def find_max(arr):
    • return 0
    • return max(arr)
Code
Diff
  • def where(arr,n):
        return arr.index(n) + 1
                    
                    
    • import functools
    • def where(arr,n):
    • for i in range(len(arr)):
    • if arr[i] == n:
    • return i+1
    • return "QAQ"
    • return arr.index(n) + 1