summaryrefslogtreecommitdiff
path: root/progs/a58.py
diff options
context:
space:
mode:
Diffstat (limited to 'progs/a58.py')
-rw-r--r--progs/a58.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/progs/a58.py b/progs/a58.py
new file mode 100644
index 0000000..fa05089
--- /dev/null
+++ b/progs/a58.py
@@ -0,0 +1,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 \ No newline at end of file