# str -> the prefix you are looking for # beg -> where to start looking for the prefix # end -> where to stop looking for the prefix str.startswith(str, beg=0,end=len(string))