string.startswith(s, substring)
Arguments:
s
(string
): larger string.substring
(string
): smaller string.
Returns:
- (
boolean
) whether the larger string starts with the smaller string
string.endswith(s, substring)
Arguments:
s
(string
): larger string.substring
(string
): smaller string.
Returns:
- (
boolean
) whether the larger string ends with the smaller string