Closed bam1006 closed 10 months ago
with open('./data/datos_enfermeria.txt') as txt: lineas = txt.readlines() enfermeros = [] preferencias = [] for i in lineas[1:]: enfermeros.append(i[:5]) preferencias.append([int(i[6]),int(i[8]),int(i[10])]) print(enfermeros) print(preferencias)