Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Python startswith() method
>>> string = "Reed Dunkle"
>>> string.startswith('Reed D')
True
>>> string.startswith('Re')
True
>>> string.startswith('Reed W')
False
>>>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment