human
Remove duplicates from a given string | Python program to remove duplicate character from character array and print in sorted order.
Create a set using String characters.
Print content of the set.
Driver code"
Solution in Python:
 What is a code to remove duplicates from a given string and the other steps required?
assistant
#Here is code to remove duplicates from a given string and the other steps required.
 def removeDuplicate ( str , n ) :
	s = set ( )
	for i in str :
		s . add ( i )
	st = " "
	for i in s :
		st = st + i
	return st
str = " geeksforgeeks "
n = len ( str )
print ( removeDuplicate ( list ( str ) , n ) )