Skip to content

Instantly share code, notes, and snippets.

@philard
Created May 26, 2013 08:00
Show Gist options
  • Save philard/5652029 to your computer and use it in GitHub Desktop.
Save philard/5652029 to your computer and use it in GitHub Desktop.
Untitled 1
i=1
t='e'
s='hi there'
print(s.find(t,i))
print(s[i:].find(t))
print(s[i:].find(t)+i)
#eof
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment