Created
October 28, 2019 01:19
-
-
Save seppo0010/f186508e42efea7ae21f037017b4fef6 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
import requests | |
r = requests.get('https://resultados2019.gob.ar/assets/data/totalized_results/regions/5/5589.json').json() | |
fit = float([x for x in r['rp'] if x['pc'] == 144 and x['cc'] == 1026][0]['v']) | |
fdt = float([x for x in r['rp'] if x['pc'] == 109 and x['cc'] == 1026][0]['v']) | |
jxc = float([x for x in r['rp'] if x['pc'] == 145 and x['cc'] == 1026][0]['v']) | |
print('FIT', fit / 1) | |
print('FDT', fdt / 5) | |
print('JxC', jxc / 8) | |
print('entra la rusa' if fit > fdt / 5 and fit > jxc / 8 else 'no entra la rusa') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
JAJAJAJAJJA Excelente