Skip to content

Commit f52cf88

Browse files
authored
Add files via upload
1 parent 7368835 commit f52cf88

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

duplicate remover(string).py

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
string= input('Enter the string: ')
2+
3+
4+
def remove_dup(your_str):
5+
result = ''
6+
for char in your_str:
7+
if char not in result:
8+
result += char
9+
return result
10+
11+
12+
removed= remove_dup(string)
13+
print('New String: ', removed)

0 commit comments

Comments
 (0)