def hilo1(L2,INI,FIN):
oddEvenMerge(L2,INI,FIN)
print ("procesos: "),L2[1:FIN+1]
def OddEvenMerge(L2,INI,FIN):
t3=Thread(target=oddEvenMerge,args=(L2,INI,FIN))
t3.start()
t3.join()
def oddEvenMerge(L2,INI,FIN):
m=(FIN-INI)+1
odd=[0 for i in range(int(m/2)+1)]
even=[0 for i in range(int(m/2)+1)]
if(m==2):
if (L2[INI]>L2[FIN]):
intercambio(L2,INI,FIN)
File "C:\Users\Uriel Morales Flores\Documents\ordenamientoerew.py", line 21, in oddEvenMerge if (L2[INI]>L2[FIN]):
TypeError: list indices must be integers or slices, not float
Ya he definido las variables como enteros pero me sigue dando error.