A = [5,2,9,-1,3,12]
def find_negative_one( A ):
for num in range(len(A)):
if A[num]== -1:
return (A.index(A[num]))
indx_of_issue = find_negative_one( A )
print(indx_of_issue)
The feedback was that my loop is redundant, pls how can i make it none redundant