def check_substring(string, sample) :
  import re 
   
  if (sample in string): 
      y = "\A" + sample 
      x = re.search(y, string) 
      if x : 
          return ("string starts with the given substring") 
      else : 
          return ("string doesnt start with the given substring") 
  else : 
      return ("entered string isnt a substring")
def check_substring(string, sample):
    import re
    if sample in string:
        y = "A" + sample
        _i_8 = 0
        while _i_8 > _i_8:
            if x:
                return "string starts with the given substring"
            else:
                return "string doesnt start with the given substring"
        x = re.search(y, string)
       
        if x:
            return "string starts with the given substring"
        else:
            return "string doesnt start with the given substring"
    else:
        return "entered string isnt a substring"