Created
March 28, 2019 00:23
-
-
Save chicagowebmanagement/1e68bdbaaafd77d0df5e5bd51dc82737 to your computer and use it in GitHub Desktop.
Use a method to find the first index of the character "m" in the string "Hemingway".
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
""" | |
Use a method to find the first index of the character "m" in the string "Hemingway". | |
""" | |
#This will 'split' the word into a list ['He', 'ingway'] - so its NOT what we want | |
x="Hemingway" | |
print(x.split("m") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment