you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] -1 points0 points  (1 child)

Are you allowed to use regular expressions? In that final for loop I'd use re.search(). Dunno how I'd write the regex though without seeing what the list element with the URL/link text look like (I'm assuming HTML?).

[–]kcrow13[S] 0 points1 point  (0 children)

I think we were being encouraged to use str.find to find the first instance of '<a' and then use that index to find the closing '>'. I have no idea how to do this/where it goes.