def findPair(array):
    if type(array) is not list:
        return 'Bukan array!'
    match = []
    for i,a in enumerate(array):
        for y,b in enumerate(array):
            if a is b and i is not y:
                found = False
                for c in match:
                    if a is c:
                        found = True
                if found is False:
                    match.append(a)
    
    count =  len(match)
    if count > 0:
        return '{} pasang'.format(count)
    else:
        return 'Tidak ada pasangan yang ditemukan!'

print("{} : {}".format([1,5,5,10,9,13,5,1],findPair([1,5,5,10,9,13,5,1])))
print("{} : {}".format([20,50,70,10,70,30,10,30,50],findPair([20,50,70,10,70,30,10,30,50])))
