0
For example, I have a function mergeSort(alist)
that has return
return count, blist
i.e., returns an integer that is the inversion counter and a list of values.
When passing a list 5 4 3 1 2 5
and make print(mergeSort(lista))
, is printed
(5, ['1', '2', '3', '4', '5'])
.
How to take only the whole (5
) of the accountant?
It’s called
unpacking(desempacotar)
– ThiagoO