summaryrefslogtreecommitdiff
path: root/progs/a58.py
blob: fa050899552d3cd97d29867fb8941c706ff83671 (plain)
1
2
3
4
5
6
7
8
9
def Repeat(x): 
    _size = len(x) 
    repeated = [] 
    for i in range(_size): 
        k = i + 1
        for j in range(k, _size): 
            if x[i] == x[j] and x[i] not in repeated: 
                repeated.append(x[i]) 
    return repeated