human
how to strip space in list.
assistant
Here is a Python code to strip space in a list

import sys

def _strip_space(list_of_strings):
  """Strips space in list."""
  return [s.strip() for s in list_of_strings]

# Enter the list of strings
list_of_strings = ["hello", "world", "123"]

# Calling the function
print((_strip_space(list_of_strings)))

#Example Output
# ['hello', 'world', '123']

#Remember to inspect code for bugs.