Record your races with a typeracer account:
Create Your Account- Save your race history and scores.
- Customize your profile and racecar.
- It’s free, why not?
Race Result Details |
Racer | Sumit (smtchahal2) |
Race Number | 14 |
Date | Thu, 2 Jan 2014 17:09:54 +0000 |
Universe | code |
Speed |
70 WPM
![]() |
Accuracy | 92.9% |
Rank | 2nd place (out of 3) |
Text typed:
|
class URLLister(SGMLParser): def reset(self): SGMLParser.reset(self) self.urls = [] def start_a(self, attrs): href = [v for k, v in attrs if k=='href'] if href: self.urls.extend(href)
— Dive Into Python
|