human
Cost to make a string Panagram | Function to return the total cost required to make the string Pangram.
Mark all the alphabets that occurred in the string.
Calculate the total cost for the missing alphabets.
Driver Code"
How can the above be solved in Python?

Give me a code to cost to make a string Panagram and the other steps required?
assistant
#Here is code to cost to make a string Panagram and the other steps required.
 def pangramCost ( arr , string ) :
	cost = 0
	occurred = [ False ] * 26
	for i in range ( len ( string ) ) :
		occurred [ ord ( string [ i ] ) - ord ( ' a ' ) ] = True
	for i in range ( 26 ) :
		if ( not occurred [ i ] ) :
			cost += arr [ i ]
	return cost
if __name__ == " _ _ main _ _ " :
	arr = [ 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10 , 11 , 12 , 13 , 14 , 15 , 16 , 17 , 18 , 19 , 20 , 21 , 22 , 23 , 24 , 25 , 26 ]
	string = " abcdefghijklmopqrstuvwz "
	print ( pangramCost ( arr , string ) )