#finds duplicate characters
def duplicatecharacters(s:str):
for i in s:
if s.count(i)>1:
return True
return False
print(duplicatecharacters(""))
from collections import Counter
def do_find_duplicates(x):
x =input("Enter a word = ")
for key,val in Counter(x).items():
print(key,val)
sam_list = [11, 13, 15, 16, 13, 15, 16, 11]
print ("The list is: " + str(sam_list))
# to remove duplicates from list
result = []
[result.append(x) for x in sam_list if x not in result]
# printing list after removal
print ("The list after removing duplicates: " + str(result))