human
Minimum cost to construct a string | Python 3 Program to find minimum cost to construct a string.
Initially all characters are un - seen.
Marking seen characters.
Count total seen character , and that is the cost.
Driver Code.
s is the string that needs to be constructed"
Solution in Python:

Can you provide a code to minimum cost to construct a string and the other steps required?
assistant
#Here is code to minimum cost to construct a string and the other steps required.
 def minCost ( s ) :
	alphabets = [ False for i in range ( 26 ) ]
	for i in range ( len ( s ) ) :
		alphabets [ ord ( s [ i ] ) - 97 ] = True
	count = 0
	for i in range ( 26 ) :
		if ( alphabets [ i ] ) :
			count += 1
	return count
if __name__ == ' _ _ main _ _ ' :
	s = " geeksforgeeks "
	print ( " Total ▁ cost ▁ to ▁ construct " , s , " is " , minCost ( s ) )