Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- def dias_libres(archivo):
- dictNuevo = {}
- dias = open(archivo, 'r')
- for linea in dias:
- tmp = linea.strip().split()
- mes = tmp[0]
- dictNuevo[mes] = len(tmp[1:])
- dias.close()
- return dictNuevo
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement