Created
October 4, 2015 13:45
-
-
Save poros/bd958626de1df3af1ae6 to your computer and use it in GitHub Desktop.
Find a substring is in a string
This file contains hidden or 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
'lmnop' in 'abcdefghijklmnopqrstuvwxyz' | |
index = 'python'.find('on') # 4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment