Last active
December 17, 2015 18:19
-
-
Save philard/5652035 to your computer and use it in GitHub Desktop.
Unit 1
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
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