Generation

generate functionSat, 12 Nov 2022

check if a string contains another string

def is_substring(string_1, string_2): return string_2 in string_1 is_substring("hello", "o")

Questions about programming?Chat with your personal AI assistant