• + 4 comments

    For the convenience, let's break the statement into equivalent code :

    maxVal = max(count)
    ans = count.index(maxVal)
    print(ans)
    

    Now maxVal stores the maximum value in the array count using the function max(). In second line, we are using the method index(). The index() method finds the given element in a list and returns its lowest index. So, here it finds maxVal in the list count and stores the location of its first occurence in ans. The last line just prints ans.