Skip to main content

check_contains

No overview available.

def check_contains(
target: string,
substring: string
) - > boolean

Checks if a specific substring exists within a target string and returns a boolean result.

Parameters

NameTypeDescription
targetstringThe primary string to be searched within.
substringstringThe specific sequence of characters to look for inside the target string.

Returns

TypeDescription
booleanTrue if the substring is found within the target string, False otherwise.