input: Write a function to check if one string is a substring of another.
  assert is_substring("test", "this is a test") == True
  assert is_substring("hello", "world") == False
  assert is_substring("abc", "abcdef") == True
  assert is_substring("xyz", "xy") == False
output: def is_substring(sub, string):
      return sub in string