Skip to content

Instantly share code, notes, and snippets.

@philard
Last active December 17, 2015 18:19
Show Gist options
  • Save philard/5652035 to your computer and use it in GitHub Desktop.
Save philard/5652035 to your computer and use it in GitHub Desktop.
Unit 1
i=1
t='e'
s='hi there'
print(s.find(t,i))
print(s[i:].find(t))
print(s[i:].find(t)+i)
# Write Python code that initializes the variable
# start_link to be the value of the position
# where the first '<a href=' occurs in a page.
page = '''<div id="top_bin"> <div id="top_content" class="width960">
<div class="udacity float-left"> <a href="/">'''
#eof
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment