human
Remove spaces from a given string | Function to remove all spaces from a given string.
To keep track of non - space character count.
Traverse the given string . If current character is not space , then place it at index 'count++.
Utility Function.
Driver program"
Solution in Python:

Give me a code to remove spaces from a given string and the other steps required?
assistant
#Here is code to remove spaces from a given string and the other steps required.
 def removeSpaces ( string ) :
	count = 0
	list = [ ]
'
	for i in xrange ( len ( string ) ) :
		if string [ i ] != ' ▁ ' :
			list . append ( string [ i ] )
	return toString ( list )
def toString ( List ) :
	return ' ' . join ( List )
string = " g ▁ eeks ▁ for ▁ ge ▁ eeks ▁ "
print removeSpaces ( string )