human
Can you show me a Python function for collapsing a list into a single string.
assistant
Here is a Python function for collapsing a list into a single string

import string

def _list_to_string(list):
  """Collapses list in to single string."""
  return " ".join(list)

# Enter the list
list = ["hello", "world", "!"]

# Calling the function
print((_list_to_string(list)))

#Example Output
# hello world !

#Remember to inspect code for bugs.