Python Prog
Python Prog
Python Prog
print(places)
print('\n')
print(lat)
print(long)
print(plc)
def duplicate_characters(string):
# Create an empty dictionary
chars = {}
# Iterate through the dictionary to find characters with count greater than 1
for char, count in chars.items():
if count > 1:
duplicates.append(char)
return duplicates
# Test cases
print(duplicate_characters("geeksforgeeks"))