Created
December 9, 2017 20:36
-
-
Save mattboehm/affa4584bac685cb10e137cdd335711d to your computer and use it in GitHub Desktop.
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
def solve(d): | |
d2 = re.sub("!.", "", d) | |
d3 = re.sub("<[^>]*>", "", d2) | |
return len(d2) - len(d3) - 2*d2.count(">") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment