input: Write a python function to extract a substring from a given string starting from the first character up to the fourth character.
  assert extract_substring('python_program') == 'pyth'
  assert extract_substring('example_string') == 'exam'
  assert extract_substring('data') == 'data'
output: def extract_substring(s):
      return s[:4]