Skip to content

Instantly share code, notes, and snippets.

@chicagowebmanagement
Created March 28, 2019 00:23
Show Gist options
  • Save chicagowebmanagement/1e68bdbaaafd77d0df5e5bd51dc82737 to your computer and use it in GitHub Desktop.
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".
"""
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