input: Write a function to print a separator line ten times using a for loop.
  assert print_separator() == "------------\n" * 10
output: def print_separator():
      separator = "------------"
      result = ""
      for _ in range(10):
          result += separator + "\n"
      return result