hariprasadraja
10/1/2019 - 11:01 AM

go slice pop back

pop's the last element in the slice

val, arr = arr[len(arr)-1], arr[:len(arr)-1]