Remove spaces from a given string | Function to remove all spaces from a given string ; Driver program
def removeSpaces ( string ) : NEW_LINE INDENT string = string . replace ( ' ▁ ' , ' ' ) NEW_LINE return string NEW_LINE DEDENT string = " g ▁ eeks ▁ for ▁ ge ▁ eeks ▁ " NEW_LINE print ( removeSpaces ( string ) ) NEW_LINE