removing duplicates in a string
Python
x = 'pythonlobby'
em = []
for i in range(len(x)):
if x[i] not in em:
em.append(x[i])
else:
pass
for i in range(len(em)):
print(em[i], end = "")
Output
Embed on website
To embed this program on your website, copy the following code and paste it into your website's HTML:
Comments
This comment belongs to a banned user and is only visible to admins.
This comment belongs to a deleted user and is only visible to admins.