Skip to content

Instantly share code, notes, and snippets.

@juanriaza
Created September 26, 2015 23:08
Show Gist options
  • Save juanriaza/74d92cf838423f3bd459 to your computer and use it in GitHub Desktop.
Save juanriaza/74d92cf838423f3bd459 to your computer and use it in GitHub Desktop.
Ejercicio Resuelto Awesome
#!/usr/bin/env python
import re
import urllib.request
URL = "https://gist.githubusercontent.com/juanriaza/cafa48e8a6b87e805cb3/raw/a937cecf644ebbf0dd3f7d021e9879b26ac088e2/trash.txt"
print(sum(map(int, re.sub(r"\D", r"", urllib.request.urlopen(URL).read().decode()))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment