input: Write a python function to get the last character of a string.
  assert get_last_char("hello") == "o"
  assert get_last_char("world") == "d"
  assert get_last_char("python") == "n"
  assert get_last_char("a") == "a"
output: def get_last_char(s):
      return s[-1]