Write a python function to Check if a Substring is Present in a Given String
Topic: Write a python function to Check if a Substring is Present in a Given String
Solution
def checksubstring(string,sub_string): if(string.find(sub_str)==-1): return False else: return True
List all Python Programs