For example, I have a mergeSort(alist)
function that has return
return count, blist
that is, returns an integer that is the inversion counter and a list of values.
When you pass a list 5 4 3 1 2 5
and make print(mergeSort(lista))
, it is printed
(5, ['1', '2', '3', '4', '5'])
.
How to get only the integer ( 5
) of the counter?