• + 0 comments

    can anyone explain which requirement is violating this code?

    if name == 'main':

    nk = input().split()

    n = int(nk[0])

    k = int(nk[1])

    a = list(map(int, input().rstrip().split())) if((n>=2 and n<=100) and ( k>=1 and k<=100) ): for i in range(len(a)): if (a[i]>=1 and a[i]<=100): pass

    print(len([[i,j]for i in a for j in a if (i