Last active
May 4, 2016 19:11
-
-
Save reeddunkle/6040173f8d1b5202998afedd2642e3f4 to your computer and use it in GitHub Desktop.
Python startswith() method
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>> 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