#Chapter 46 program to find if there is a duplicate in a list #define an array of 9 elements a = [2,4,3,7,5,8,5,3,10] duplicate = False countOfStatements = 0 n = len(a) for i in range(n-1): for j in range((i+1),n): countOfStatements += 1 if a[i] == a[j]: duplicate = True print (i,j," a[i] = ", a[i],"a[j] = ",a[j], "duplicate = ", duplicate) print("countOfStatements", countOfStatements)