input: Write a function to substitute spaces with a specific character in a string.
  assert substitute_spaces("hello people",'@')==("hello@people")
  assert substitute_spaces("python program language",'$')==("python$program$language")
  assert substitute_spaces("blank space","-")==("blank-space")
output: def substitute_spaces(string, char):
      return string.replace(' ', char)