diff options
Diffstat (limited to 'progs/a73.py')
-rw-r--r-- | progs/a73.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/progs/a73.py b/progs/a73.py new file mode 100644 index 0000000..3273244 --- /dev/null +++ b/progs/a73.py @@ -0,0 +1,4 @@ +from collections import OrderedDict
+def remove_duplicate(string):
+ result = ' '.join(OrderedDict((w,w) for w in string.split()).keys())
+ return result
\ No newline at end of file |