Skip to content

Instantly share code, notes, and snippets.

@mattboehm
Created December 9, 2017 20:36
Show Gist options
  • Save mattboehm/affa4584bac685cb10e137cdd335711d to your computer and use it in GitHub Desktop.
Save mattboehm/affa4584bac685cb10e137cdd335711d to your computer and use it in GitHub Desktop.
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