startswith() - Returns true if the string starts with the specified value

Returns True if the string starts with the specified substring.  This is a case sensitive test.

Example

Python
str = 'Hello World!'
print(str.startswith('He'))
print(str.startswith('he'))

Output

True
False